ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Ubuntu apt-get 오류시 대처법
    Linux 2012. 7. 2. 18:26

    우분투를 처음 설치하고 apt-get을 이용해 필요한 패키지를 설치하려고 하면,

    가끔 아래와 같은 에러를 찍찍 뱉으며 안될때가 있다.

    예를 들어 설치하려는 패키지가 vim 이라면


    package vim is not available

    the program vim can be found in the following packages


    등등인데...

    이는 apt-get 실행 시 저장소에서 패키지를 찾지 못해 발생하는 오류다.

    기본 설치시 설정되어 있던 서버가 죽은 경우인데

    이럴땐  패키지 저장소 주소를 daum의 ftp 서버로 변경해주면 된다.

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

    귀찮다 싶으면 아래의 파일을 받아 변경해도 좋다. (우분투 12.04 기준)

    ※ 우분투 9.x 버전대의 구버전 같은 경우는 구 릴리즈 버전으로 변경하자.

    (http://old-releases.ubuntu.com/ubuntu/)


    sources.list


    직접 수정하겠다면, 아래와 같이 설정 파일을 열어 수정해주자.

    # vi /etc/apt/sources.list

    vi의 치환기능을 이용해도 된다

    (:%s/kr.archive.ubuntu.com/ftp.daum.net/g)

    # deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise 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/ precise main restricted
    deb-src http://ftp.daum.net/ubuntu/ precise main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://ftp.daum.net/ubuntu/ precise-updates main restricted
    deb-src http://ftp.daum.net/ubuntu/ precise-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/ precise universe
    deb-src http://ftp.daum.net/ubuntu/ precise universe
    deb http://ftp.daum.net/ubuntu/ precise-updates universe
    deb-src http://ftp.daum.net/ubuntu/ precise-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/ precise multiverse
    deb-src http://ftp.daum.net/ubuntu/ precise multiverse
    deb http://ftp.daum.net/ubuntu/ precise-updates multiverse
    deb-src http://ftp.daum.net/ubuntu/ precise-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://ftp.daum.net/ubuntu/ precise-backports main restricted universe multiverse
    deb-src http://ftp.daum.net/ubuntu/ precise-backports main restricted universe multiverse
    
    deb http://ftp.daum.net/ubuntu/ precise-security main restricted
    deb-src http://ftp.daum.net/ubuntu/ precise-security main restricted
    deb http://ftp.daum.net/ubuntu/ precise-security universe
    deb-src http://ftp.daum.net/ubuntu/ precise-security universe
    deb http://ftp.daum.net/ubuntu/ precise-security multiverse
    deb-src http://ftp.daum.net/ubuntu/ precise-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
    
    ## This software is not part of Ubuntu, but is offered by third-party
    ## developers who want to ship their latest software.
    deb http://extras.ubuntu.com/ubuntu precise main
    deb-src http://extras.ubuntu.com/ubuntu precise main
    


    수정이 끝났다면 목록 업데이트를 한번 해준다.

    # apt-get update


    'Linux' 카테고리의 다른 글

    Ubuntu 웹서버 구축 (APM setup)  (0) 2012.07.04
    Ubuntu ssh 설치 & 설정  (0) 2012.07.04
    Yum으로 PHP Update  (0) 2012.06.01
    Linux Python Upgrade  (0) 2012.04.16
    APM Setup  (0) 2012.04.16
Designed by Tistory.