# QT 4.7.4

# Ubuntu 16

 

• 필수 패키지 설치

sudo apt-get install build-essential mesa-common-dev libglu1-mesa-dev


• 다운로드 사이트

http://download.qt.io/archive/qt/



• 권한 설정

$ chmod a+x qt-opensource-linux-x86-5.5.1.run


Qt 설치

$ ./qt-opensource-linux-x86-5.5.1.run




• 설치 경로 설정


 컴포넌트 설치





• 설치 완료


• 프로젝트 설정

New File or Project








• 컴파일 설정










끝.


출처: https://www.ics.com/blog/getting-started-qt-and-qt-creator-linux

출처: http://forum.falinux.com/zbxe/index.php?document_srl=781083&mid=graphic

# QT 4.7.4

# Ubuntu 16


Qt 다운로드

→ 공유 디렉토리에서 Qt를 복사해 온다.

 

• 압축 해제

$ tar xzvf qt-everywhere-opensource-src-4.7.4.tar.gz

$ cd qt-everywhere-opensource-src-4.7.4

 

qmake.conf 수정

→ 크로스 컴파일러를 수정해 준다.

$ vi mkspecs/qws/linux-arm-g++/qmake.conf


configure

$ ./configure -embedded arm -opensource -qt-zlib -qt-gif -no-iconv -no-libtiff -qt-libpng -no-libmng -qt-libjpeg -no-qt3support -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-svg -no-webkit -no-javascript-jit -no-script -no-scripttools -no-declarative -qt-freetype -qvfb -little-endian -no-neon -no-nis -no-cups


• 옵션 설명

URL http://radekp.github.io/qtmoko/api/buildsystem/over-configure-options-qt-embedded-1.html


$ make

또는 $ make -j<cpu 코어 숫자 + 1>

 

$ sudo make install


• 환경 설정

$ sudo vi /etc/profile

export PATH=$PATH:/usr/local/Trolltech/QtEmbedded-4.7.4-arm/bin

 

$ export QTDIR=/usr/local/Trolltech/QtEmbedded-4.7.4-arm/

$ export PATH=$QTDIR/bin:$PATH


• example


• 컴파일 



• 컴파일 에러 발생


• 컴파일 에러 해결방안

$ sudo apt-get install qt4-qmake libqt4-dev


끝.


출처: http://gentooboy.tistory.com/10

출처: http://forum.falinux.com/zbxe/index.php?document_srl=781083&mid=graphic

출처: http://korone.net/bbs/board.php?bo_table=qt_qna&wr_id=17866

크로스 컴파일러 설치

 

※ 컴파일러 및 라이브러리는 공유 디렉토리 또는 Samba 공유 디렉토리에 넣어준다.

※ 타겟 CPU: S3C6410


# Ubuntu 16


• 기본 패키지 설치

→ 크로스 컴파일러만 설치할 경우 아래와 같은 오류가 발생한다.

/usr/cross_compiler/s3c6410/libexec/gcc/arm-generic-linux-gnueabi/4.3.2/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

 

• 라이브러리에 필요한 라이브러리 설치

$ sudo apt-get install m4 libgmp-dev




gmp 설치

URL: http://ftp.gnu.org/pub/gnu/gmp/

$ tar xvf gmp-6.1.2.tar.bz2

$ cd gmp-4.1.3

$ ./configure

$ make

$ make check

$ make install

 

mpfr 설치

URL: http://www.mpfr.org/mpfr-current/#download

$ tar xzvf mpfr-3.1.5.tar.gz

$ cd mpfr-3.1.5

$ ./configure

$ make

$ make check

$ sudo make install

 

• 컴파일 결과물을 /usr/lib로 이동

# find / -name libmpfr.so.1 -print

/usr/local/lib/libmpfr.so.1

 

• 복사

$ sudo cp -f /usr/local/lib/libgmp* /usr/lib

$ sudo cp -f /usr/local/lib/libmpfr* /usr/lib

 

• 파일명 변경

$ sudo mv libgmp.so.10 libmpfr.so.3

$ sudo mv libmpfr.so.4 libmpfr.so.1

 

• 설치 디렉토리 생성 (컴파일러 설치 경로)

$ sudo mkdir -p /usr/cross_compiler/s3c6410

 

 • 압축 풀기 (필자는 크로스 컴파일러를 만들어서 사용하였음)

→ 해당 타겟 보드의 크로스 컴파일러를 압축을 풀어준다.

$ sudo tar xzvf s3c6410_cross_compiler.tar.gz -C /

 

 • 환경 변수 등록

$ sudo vi /etc/profile

export PATH=$PATH:/usr/cross_compiler/s3c6410/bin

 

크로스 컴파일러 만드는 방법

URL: http://forum.falinux.com/zbxe/index.php?document_srl=554217&mid=lecture_tip


임베디드 개발 환경 설치 


# Ubuntu 16

# ssh

# samba: PC ↔ Ubuntu 파일 공유(Virtual Box 공유 디렉토리를 이용한다면 생략)

# tftpboot: 타겟 보드에서 Kernel, Ramdisk, bootloader 이미지 다운로드

# nfs: 타겟보드 ↔ Ubuntu 파일 공유


1. 네트워크 설정

• 내부(Ubuntu Internet) 네트워크


• 호스트 전용(PC Ubuntu) 네트워크


• 외부(Ubuntu Target Board) 네트워크

필자는 Network Card 2개 사용하고 있어 이와 같이 설정하였음.

Network Card 1개일 경우 개발환경 설치가 끝난 후 어댑터 1를 브리지 어댑터로 설정하여 타겟보드와 연동한다.


$ ifconfig


2. 우분투 기본 설정


root 패스워드 변경

$ sudo passwd root



• 방화벽 설정

$ sudo ufw status

상태비활성

 

$ sudo ufw enable

방화벽이 활성상태이며 시스템 시작할 때 활성화 된다.


기본적인 룰을 적용.

전부 막기 sudo ufw default deny

전부 열기 sudo ufw default allow



3. 기본 패키지 설치

기본 패키지 설치

 

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get install gcc build-essential binutils libsdl-dev libncurses5 libncurses5-dev bin86 vim





vi 편집기 하이라이트 설정

$ sudo vi /etc/vim/vimrc

→ 맨 아래 입력해 준다. (ctag, cscope는 다음에 다루기로 함)

set nu

syntax on

set autoindent

set cindent

set smartindent

set tabstop=4

set shiftwidth=4

highlight Comment term=bold cterm=bold ctermfg=4

set tags=./tags

set csprg=/usr/bin/cscope

set csto=0

set cst

set nocsverb

if filereadable("./cscope.out")

    cs add cscope.out

else

    cs add ./cscope.out

endif

set csverb

set fileencodings=utf8,euc-kr



4. ssh 설치

$ sudo apt-get install ssh


 • ssh 방화벽 설정

$ sudo ufw allow 22/tcp


ssh 권한 설정 경로

권한 및 설정을 변경하려면 아래 경로에서 수정해 준다. 필자는 기본 값으로 사용.

$ sudo /etc/ssh/sshd_config


 • 명령어

서비스 재 시작

$ sudo /etc/init.d/ssh restart

$ sudo service ssh restart


5. samba 설치

• 설치

$ sudo apt-get install samba 


samba 유저 추가

$ sudo smbpasswd -a ubuntu

New SMB password:

Retype new SMB password:

 

• 계정 삭제 방법

$ smbpasswd -x 아이디


환경 설정

$ sudo vi /etc/samba/smb.conf

→ 아래 경로에서 주석을 제거하거나 내용을 추가해 준다.


[homes]

comment = Home Directories

browseable = no

valid users = %S

read only = no

 

[NFS]

comment = Test Linux Server

path = /NFS

read only = no

create mask = 775

directory mask = 775




• 디렉토리 설정

$ sudo mkdir /TNFS

$ sudo mkdir /TNFS/Proj

$ sudo mkdir /TNFS/tftpboot

$ sudo mkdir /TNFS/nfs

$ sudo chmod -R 775 /TNFS

$ sudo chown ubuntu:ubuntu /TNFS

$ sudo ln -s /TNFS/Proj /Proj

$ sudo ln -s /TNFS/nfs /nfs

$ sudo ln -s /TNFS/tftpboot /tftpboot

 

samba 방화벽설정

$ sudo ufw allow 139,445/tcp

$ sudo ufw allow 137,138/udp

 

samba 재 시작.

$ sudo service smbd restart

 

 

samba 접속

\\[IP]



6. tftp 설치

• 설치

$ sudo apt-get install tftpd-hpa tftp-hpa


tftp 디렉터리 생성

$ sudo mkdir -p /NFS/tftpboot


tftp 설정

$ sudo vi /etc/default/tftpd-hpa


TFTP_USERNAME="tftp"

 TFTP_DIRECTORY="/TNFS/tftpboot"

 TFTP_ADDRESS="0.0.0.0:69"

 TFTP_OPTIONS="--secure"



tftp 공유 디렉토리 설정

$ sudo chmod -R 775 /TNFS/tftpboot/

 

• 방화벽 설정

$ sudo ufw allow 69/tcp

$ sudo ufw allow 69/udp

 

• 서비스 재 시작

$ sudo service tftpd-hpa restart



7. nfs 설치

• 설치

$ sudo apt-get install nfs-kernel-server nfs-common portmap


 • tftp 디렉터리 생성

$ sudo mkdir -p /NFS/nfs

 

 nfs 설정

$ sudo vi /etc/exports


/TNFS/nfs *(rw,async,no_root_squash,no_subtree_check,insecure)



nfs 포트설정

$ sudo ufw allow 111,2049,4000,4001,4002,4003,4004/tcp

$ sudo ufw allow 111,2049,4000,4001,4002,4003,4004/udp

 

$ vi /etc/services


# nfs

status 4000/tcp

status 4000/udp

mountd 4002/tcp

mountd 4002/udp

rquotad 4003/tcp

rquotad 4003/udp



$ sudo vi /etc/default/nfs-kernel-server

→ 아래와 같이 주석 처리한 후 아래 내용으로 변경.

#RPCMOUNTDOPTS=--manage-gids

RPCMOUNTDOPTS="-p 4002 -g"


$ sudo vi /etc/modprobe.d/options


options lockd nlm_udpport=4001 nlm_tcpport=4001


• 서비스 재 시작 

$ sudo /etc/init.d/nfs-kernel-server restart

 

 • 타겟 보드에서 테스트

# ifconfig eth0 [같은 IP 대역으로 변경]

# mount -t nfs -o nolock,tcp [IP주소]:/TNFS/nfs /tmp


완료.

# Ubuntu 16

# Qt 4.7.4


qt 컴파일 에러가 발생하였음


qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory



해결 방법


sudo apt-get install qt4-qmake libqt4-dev







출처: http://www.debugpoint.com/2016/01/how-to-solve-qmake-error-qmake-no-such-file-or-directory/

# Virtual Box 5.1

# Ubuntu 16


공유 디렉토리 설정



• 게스트 확장 설치

이전 버전에서는 "장치 게스트 확장 CD 이미지 삽입"하여 설치 하였으나, 오류가 발생하였음. 



가상 광 디스크 C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso을(를) 가상 머신 Ubuntu16_Env에 삽입할 수 없습니다.

Could not mount the media/drive 'C:\Program Files\Oracle\VirtualBox/VBoxGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED).

결과 코드: E_FAIL (0x80004005)

구성 요소: ConsoleWrap

인터페이스: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

호출자: IMachine {b2547866-a0a1-4391-8b86-6952d82efaa0}



• 해결방법

$ sudo apt-get install virtualbox-guest-additions-iso

$ sudo apt-get install virtualbox-guest-utils




$ sudo usermod -G vboxsf -a ubuntu

$ reboot


• 공유 디렉토리 경로

$ cd /media/sf_share



완료.


• Mount 명령어는 아래와 같다

$ sudo mount -t vboxsf share /mnt/share




출처 : https://askubuntu.com/questions/99003/error-in-installing-virtualbox-guest-additions-iso-file-mount

출처 : https://superuser.com/questions/745868/mount-failed-unknown-file-system-in-virtualbox-in-ubuntu-14-04-and-windows-7-a

$ sudo vi /etc/vim/vimrc

→ 맨 아래 입력해 줍니다. (ctag, cscope는 다음에 다루기로 함)



set nu

syntax on

set autoindent

set cindent

set smartindent

set tabstop=4

set shiftwidth=4

highlight Comment term=bold cterm=bold ctermfg=4

set tags=./tags

set csprg=/usr/bin/cscope

set csto=0

set cst

set nocsverb

if filereadable("./cscope.out")

    cs add cscope.out

else

    cs add ./cscope.out

endif

set csverb

set fileencodings=utf8,euc-kr

 





# Oracle VM VirtualBox 5.1

# ubuntu-16.04.2-desktop-i386.iso 



호스트키 변경

파일 → 환경설정 → 입력 → 가상 머신



가상 머신 만들기

새로 만들기를 클릭한다.






동적 할당 또는 고정크기를 선택합니다.

필자는 고정 크기를 사용하여 설치하였습니다.
















# Ubuntu 10.04.4 LTS

# Linux 2.6.32


# apt-get update 아래와 같은 오류가 발생함


E: 동적 mmap이 한계를 벗어났습니다. APT::Cache-Limit의 크기를 높이십시오. 현재 값: 25165824. (man 5 apt.conf)

E: libstdc++6-powerpcspe-cross 처리하는 중에 오류가 발생했습니다 (NewVersion1)

E: Problem with MergeList /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_universe_binary-i386_Packages

W: Unable to munmap

E: 패키지 목록이나 상태 파일을 파싱할 수 없거나 열 수 없습니다.


해결방법



# vi /etc/apt/apt.conf.d/70debconf

파일 끝에 다음 내용을 추가한다.


APT::Cache-Limit "100000000";


# apt-get clean

# apt-get update --fix-missing

 


출처: https://askubuntu.com/questions/219523/dynamic-mmap-ran-out-of-room-when-trying-to-sudo-apt-get-anything/219532

# Ubuntu 10.04.4 LTS

# Linux 2.6.32



apt-get update 명령어를 입력하니 아래와 같은 오류가 발생하였다.


root@ubuntu-desktop:/etc/apt# apt-get update

무시http://ftp.daum.net lucid Release.gpg

무시http://ftp.daum.net/ubuntu/ lucid/main Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid/restricted Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid/universe Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid/multiverse Translation-ko

무시http://ftp.daum.net lucid-updates Release.gpg

무시http://ftp.daum.net/ubuntu/ lucid-updates/main Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid-updates/restricted Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid-updates/universe Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid-updates/multiverse Translation-ko

무시http://ftp.daum.net lucid Release

무시http://ftp.daum.net lucid-updates Release

무시http://security.ubuntu.com lucid-security Release.gpg

무시http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-ko

무시http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-ko

무시http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-ko

무시http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-ko

무시http://ftp.daum.net lucid/main Packages

무시http://ftp.daum.net lucid/restricted Packages

무시http://ftp.daum.net lucid/main Sources

무시http://ftp.daum.net lucid/restricted Sources

무시http://ftp.daum.net lucid/universe Packages

무시http://ftp.daum.net lucid/universe Sources

무시http://ftp.daum.net lucid/multiverse Packages

무시http://ftp.daum.net lucid/multiverse Sources

무시http://ftp.daum.net lucid-updates/main Packages

무시http://ftp.daum.net lucid-updates/restricted Packages

무시http://ftp.daum.net lucid-updates/main Sources

무시http://ftp.daum.net lucid-updates/restricted Sources

무시http://ftp.daum.net lucid-updates/universe Packages

무시http://ftp.daum.net lucid-updates/universe Sources

무시http://ftp.daum.net lucid-updates/multiverse Packages

무시http://ftp.daum.net lucid-updates/multiverse Sources

무시http://ftp.daum.net lucid/main Packages

무시http://ftp.daum.net lucid/restricted Packages

무시http://security.ubuntu.com lucid-security Release

무시http://ftp.daum.net lucid/main Sources

무시http://ftp.daum.net lucid/restricted Sources

무시http://ftp.daum.net lucid/universe Packages

무시http://ftp.daum.net lucid/universe Sources

무시http://ftp.daum.net lucid/multiverse Packages

무시http://ftp.daum.net lucid/multiverse Sources

무시http://ftp.daum.net lucid-updates/main Packages

무시http://ftp.daum.net lucid-updates/restricted Packages

무시http://ftp.daum.net lucid-updates/main Sources

무시http://ftp.daum.net lucid-updates/restricted Sources

무시http://ftp.daum.net lucid-updates/universe Packages

무시http://ftp.daum.net lucid-updates/universe Sources

무시http://ftp.daum.net lucid-updates/multiverse Packages

무시http://ftp.daum.net lucid-updates/multiverse Sources

오류 http://ftp.daum.net lucid/main Packages

  404  Not Found

오류 http://ftp.daum.net lucid/restricted Packages

  404  Not Found

오류 http://ftp.daum.net lucid/main Sources

  404  Not Found

오류 http://ftp.daum.net lucid/restricted Sources

  404  Not Found

오류 http://ftp.daum.net lucid/universe Packages

  404  Not Found

오류 http://ftp.daum.net lucid/universe Sources

  404  Not Found

무시http://security.ubuntu.com lucid-security/main Packages

오류 http://ftp.daum.net lucid/multiverse Packages

  404  Not Found

오류 http://ftp.daum.net lucid/multiverse Sources

  404  Not Found

오류 http://ftp.daum.net lucid-updates/main Packages

  404  Not Found

오류 http://ftp.daum.net lucid-updates/restricted Packages

  404  Not Found

오류 http://ftp.daum.net lucid-updates/main Sources

  404  Not Found

오류 http://ftp.daum.net lucid-updates/restricted Sources

  404  Not Found

오류 http://ftp.daum.net lucid-updates/universe Packages

  404  Not Found

오류 http://ftp.daum.net lucid-updates/universe Sources

  404  Not Found

오류 http://ftp.daum.net lucid-updates/multiverse Packages

  404  Not Found

오류 http://ftp.daum.net lucid-updates/multiverse Sources

  404  Not Found

무시http://security.ubuntu.com lucid-security/restricted Packages

무시http://security.ubuntu.com lucid-security/main Sources

무시http://security.ubuntu.com lucid-security/restricted Sources

무시http://security.ubuntu.com lucid-security/universe Packages

무시http://security.ubuntu.com lucid-security/universe Sources

무시http://security.ubuntu.com lucid-security/multiverse Packages

무시http://security.ubuntu.com lucid-security/multiverse Sources

무시http://security.ubuntu.com lucid-security/main Packages

무시http://security.ubuntu.com lucid-security/restricted Packages

무시http://security.ubuntu.com lucid-security/main Sources

무시http://security.ubuntu.com lucid-security/restricted Sources

무시http://security.ubuntu.com lucid-security/universe Packages

무시http://security.ubuntu.com lucid-security/universe Sources

무시http://security.ubuntu.com lucid-security/multiverse Packages

무시http://security.ubuntu.com lucid-security/multiverse Sources

오류 http://security.ubuntu.com lucid-security/main Packages

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/restricted Packages

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/main Sources

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/restricted Sources

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/universe Packages

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/universe Sources

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/multiverse Packages

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/multiverse Sources

  404  Not Found [IP: 91.189.91.23 80]

W: http://ftp.daum.net/ubuntu/dists/lucid/main/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/restricted/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/main/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/restricted/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/universe/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/universe/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/multiverse/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/multiverse/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/main/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/restricted/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/main/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/restricted/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/universe/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/universe/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/multiverse/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/multiverse/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/main/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/restricted/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/main/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/restricted/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/universe/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/universe/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/multiverse/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/multiverse/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]


E: 일부 인덱스 파일을 다운로드하는 데 실패했습니다. 해당 파일을 무시하거나 과거의 버전을 대신 사용합니다.



해결방법

sourcelist를 수정해 준다.


# vi sources.list



# deb cdrom:[Ubuntu 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ dists/precise/main/binary-i386/


# deb cdrom:[Ubuntu 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ dists/precise/restricted/binary-i386/

# deb cdrom:[Ubuntu 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ precise main restricted


# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

# newer versions of the distribution.

deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted


## Major bug fix updates produced after the final release of the

## distribution.

deb http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted


## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

## team. Also, please note that software in universe WILL NOT receive any

## review or updates from the Ubuntu security team.

deb http://gb.archive.ubuntu.com/ubuntu/ xenial universe

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial universe

deb http://gb.archive.ubuntu.com/ubuntu/ xenial-updates universe

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates universe


## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 

## team, and may not be under a free licence. Please satisfy yourself as to 

## your rights to use the software. Also, please note that software in 

## multiverse WILL NOT receive any review or updates from the Ubuntu

## security team.

deb http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse


## N.B. software from this repository may not have been tested as

## extensively as that contained in the main release, although it includes

## newer versions of some applications which may provide useful features.

## Also, please note that software in backports WILL NOT receive any review

## or updates from the Ubuntu security team.

deb http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse


deb http://security.ubuntu.com/ubuntu xenial-security main restricted

deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted

deb http://security.ubuntu.com/ubuntu xenial-security universe

deb-src http://security.ubuntu.com/ubuntu xenial-security universe

deb http://security.ubuntu.com/ubuntu xenial-security multiverse

deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse


## Uncomment the following two lines to add software from Canonical's

## 'partner' repository.

## This software is not part of Ubuntu, but is offered by Canonical and the

## respective vendors as a service to Ubuntu users.

# deb http://archive.canonical.com/ubuntu precise partner

# deb-src http://archive.canonical.com/ubuntu precise partner



출처: https://ubuntuforums.org/showthread.php?t=2346051


+ Recent posts