Linux ETC

Debian upgrade, lenny apt source list

2012.05.25 07:24

호스트웨이 조회 수:17165

 현재 데비안의 최신 버전은 6.0 Squeeze 입니다.

2011년 2월 6일 릴리즈 되었고, 그 후 1년이 지난 2012년 2월 6일부터 이전 버전 Lenny(Debian 5)의 보안 업데이트가 중단 되었습니다. 오래된 OS와 소프트웨어들은 알려진 보안취약점들이 존재합니다. 최신으로 유지 해주시는 것이 좋습니다

.

lenny => Squeeze로 upgrade 방법과 lenny를 유지해야 할 경우 변경 된 apt source list에 대해 포스팅 진행 합니다.

 

lenny에서 squeeze로 재설치 없이 업그레이드 하는 방법.
기존에 설정 되어 있는 부분들은 주석처리 혹은 삭제 해준 후 아래와 같이 수정
root@hostway:~# vi /etc/apt/sources.list

#deb http://security.debian.org/ lenny/updates main contrib non-free
#deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb http://ftp.daum.net/debian/ squeeze main
deb-src
http://ftp.daum.net/debian/ squeeze main

 

root@hostway:~# aptitude update
root@hostway:~# aptitude install apt dpkg aptitude
root@hostway:~# aptitude full-upgrade

 

* 업그레이드 도중 아래와 같이 GPG error가 발생한다면..  공개키를 설치 해준다.
Reading package lists... Done
W: GPG error: http://security.debian.org etch/updates Release: The following signatures couldn't
 be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
W: GPG error: http://ftp.kr.debian.org etch Release: The following signatures couldn't be verified
 because the public key is not available: NO_PUBKEY 123456789abcd
W: You may want to run apt-get update to correct these problems


root@hostway:~# apt-get install debian-archive-keyring

 

정상 완료 되었다면, 아래와 같이 버전 업그레이드가 완료 된 것을 확인 할 수 있습니다.
root@hostway:~# cat /etc/debian_version
6.0.5

 

Lenny 사용 중에 갑자기 잘 되던 apt-get 명령이 미러사이트를 찾지 못한다며 에러가 발생해서 설치를 못하는 경우가 생긴다면..!!

아래와 같이 기존 미러리스트는 #(주석) 해주신 후 추가 혹은 수정 해줍니다.

hostway:~# vi /etc/apt/sources.list
#deb http://security.debian.org/ lenny/updates main contrib non-free
#deb-src http://security.debian.org/ lenny/updates main contrib non-free

deb http://ftp.kr.debian.org/debian-archive/debian/ lenny main non-free contrib
deb-src
http://ftp.kr.debian.org/debian-archive/debian/ lenny main non-free contrib