Linux/Ubuntu2009. 10. 12. 23:30

ubuntu에서는 특정 저장소를 통해서 소프트웨어를 배포한다.
apt-get 명령어를 이용하여 소프트웨어 패키지를 다운로드하게되는데
간혹 apt-get 명령어 실행시 다운로드 에러가 발생하는 경우가 있다.

기본저장소로 설정되어 있는 Kaist 서버가 죽은 경우인데,
소프트웨어 패키지를 읽어올 저장소의 위치를 Daum으로 변경하여 간단히 해결 할 수 있다.

http://kr.archive.ubuntu.com -> http://ftp.daum.net/ubuntu

/etc/apt/ sources.list 파일을 열어서 아래와 같이 주소를 수정하면 된다.

우선 Terminal을 열고 아래와 같이 입력 한다.

$sudo gedit /etc/apt/sources.list

gedit 가 열리면 아래와 같이 내용을 수정한다.

#deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ftp.daum.net/ubuntu/ jaunty main restricted
deb-src http://ftp.daum.net/ubuntu/ jaunty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ftp.daum.net/ubuntu/ jaunty-updates main restricted
deb-src http://ftp.daum.net/ubuntu/ jaunty-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://ftp.daum.net/ubuntu/ jaunty universe
deb-src http://ftp.daum.net/ubuntu/ jaunty universe
deb http://ftp.daum.net/ubuntu/ jaunty-updates universe
deb-src http://ftp.daum.net/ubuntu/ jaunty-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://ftp.daum.net/ubuntu/ jaunty multiverse
deb-src http://ftp.daum.net/ubuntu/ jaunty multiverse
deb http://ftp.daum.net/ubuntu/ jaunty-updates multiverse
deb-src http://ftp.daum.net/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://kr.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://kr.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe 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 jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb http://security.ubuntu.com/ubuntu jaunty-security universe
deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse

ubuntu 버젼에 따라 상기 파일의 내용이 조금 달라진다.
(위의 예제는 9.04 jaunty 기준임)

파일 수정이 완료 되었으면 저장 후 gedit를 종료한다.

다시 터미널에서 아래와 같이 저장소를 update한 후 원하는 소프트웨어를 apt-get을 이용하여 다운로드 하면된다.
$sudo apt-get update
Posted by ekwang