기타

linux / source.list 수정하기

nopdata 2018. 2. 27. 21:34
qemu로 mips squeeze 버전을 설치했었다. 필요에 의해 gdb를 설치하려는데 자꾸 설치가 안된다.
root@debian-mips:~# apt-get install gdb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  gdbserver libpython2.6
Suggested packages:
  gdb-doc
The following NEW packages will be installed:
  gdb gdbserver libpython2.6
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,858 kB of archives.
After this operation, 9,880 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libpython2.6 gdbserver gdb
Install these packages without verification [y/N]? y
Err http://ftp.debian.org/debian/ squeeze/main libpython2.6 mips 2.6.6-8+b1
  404  Not Found [IP: 130.89.148.12 80]
Err http://ftp.debian.org/debian/ squeeze/main gdbserver mips 7.0.1-2
  404  Not Found [IP: 130.89.148.12 80]
Err http://ftp.debian.org/debian/ squeeze/main gdb mips 7.0.1-2
  404  Not Found [IP: 130.89.148.12 80]
Failed to fetch http://ftp.debian.org/debian/pool/main/p/python2.6/libpython2.6_2.6.6-8+b1_mips.deb  404  Not Found [IP: 130.89.148.12 80]
Failed to fetch http://ftp.debian.org/debian/pool/main/g/gdb/gdbserver_7.0.1-2_mips.deb  404  Not Found [IP: 130.89.148.12 80]
Failed to fetch http://ftp.debian.org/debian/pool/main/g/gdb/gdb_7.0.1-2_mips.deb  404  Not Found [IP: 130.89.148.12 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

크흠.... 해당 소스가 존재하는 http://ftp.debian.org/debian/에 들어가보면 squeeze관련 파일은 더이상 지원하지 않는다고 한다.
다른 위치를 찾아야 한다. ftp.daum.net를 넣어놓고 추가를 해 보니

root@debian-mips:~# apt-get update
Ign http://ftp.daum.net squeeze Release.gpg
Ign http://ftp.daum.net/debian/ squeeze/main Translation-en
Ign http://ftp.daum.net/debian/ squeeze/main Translation-en_US
Ign http://ftp.daum.net squeeze Release
Ign http://ftp.daum.net squeeze/main Sources
Ign http://ftp.daum.net squeeze/main mips Packages
Err http://ftp.daum.net squeeze/main Sources
  404  Not Found
Err http://ftp.daum.net squeeze/main mips Packages
  404  Not Found
E: Some index files failed to download, they have been ignored, or old ones used instead.

패키지 목록을 가져오는 과정에서 dists/squeeze가 없다고 한다. sources.list에 입력한 형태는

deb http://ftp.daum.net/debian/ squeeze main

이와 같은 형태이다. 아마 데이터를 가져오는 형태는 http://ftp.daum.net/debian/dists/squeeze/데이터 이와 같은 형태로 보인다. 따라서, 다음 역시 squeeze는 지원하지 않는 모양이다.
그 다음으로 찾은게 카이스트이다. 카이스트의 경우 archive로 경로가 조금 다르며 http://ftp.kaist.ac.kr/debian-archive/debian/dists/ 에 들어가보면 squeeze가 존재함을 확인할 수 있다.
해서, 다른것들은 어차피 안되니 다 지워버리고 다음 두개만 남겼다.

/etc/apt/sources.list


아! 된다!

'기타' 카테고리의 다른 글

브라우저 시크릿 모드 우회  (0) 2021.05.17
Clicker Heroes  (0) 2018.02.26
Genymotion Unable to start the virtual device.  (1) 2018.02.12
Bluestack - Window 10 오류 (SYSTEM_SERVICE_EXCEPTION)  (3) 2016.11.07
파이썬 레지스트리 설정  (0) 2016.11.06