데비안 apt 오류 파일을 열 수 없습니다


0

발행했을 때 apt-get build-dep openoffice.org아래와 같은 오류가 발생했습니다.

apt-get build-dep openoffice.org
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Could not open file /var/lib/apt/lists/http.us.debian.org_debian_dists_squeeze_updates_main_source_Sources - open (2: No such file or directory)

이 문제를 해결하는 방법?

추가 정보 : 다음과 같은 오류가 발생했습니다. apt-get update

Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 DVD Binary-1 20110322-15:11] squeeze Release.gpg
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 DVD Binary-1 20110322-15:11]/ squeeze/contrib Translation-en
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 DVD Binary-1 20110322-15:11]/ squeeze/contrib Translation-en_US
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 DVD Binary-1 20110322-15:11]/ squeeze/main Translation-en
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 DVD Binary-1 20110322-15:11]/ squeeze/main Translation-en_US
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 DVD Binary-1 20110322-15:11] squeeze Release
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 DVD Binary-1 20110322-15:11] squeeze/contrib i386 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 DVD Binary-1 20110322-15:11] squeeze/main i386 Packages/DiffIndex
Hit http://ftp.us.debian.org squeeze-updates Release.gpg                       
Hit http://security.debian.org squeeze/updates Release.gpg           
Hit http://http.us.debian.org squeeze Release.gpg                    
Ign http://ftp.us.debian.org/debian/ squeeze-updates/contrib Translation-en
Ign http://ftp.us.debian.org/debian/ squeeze-updates/contrib Translation-en_US
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en_US
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_US
Ign http://ftp.us.debian.org/debian/ squeeze-updates/main Translation-en
Ign http://ftp.us.debian.org/debian/ squeeze-updates/main Translation-en_US
Hit http://ftp.us.debian.org squeeze-updates Release                 
Hit http://ftp.us.debian.org squeeze-updates/main Sources/DiffIndex  
Ign http://http.us.debian.org/debian/ squeeze/contrib Translation-en
Ign http://http.us.debian.org/debian/ squeeze/contrib Translation-en_US
Hit http://ftp.us.debian.org squeeze-updates/contrib Sources         
Ign http://http.us.debian.org/debian/ squeeze/main Translation-en    
Ign http://http.us.debian.org/debian/ squeeze/main Translation-en_US 
Ign http://http.us.debian.org/debian/ squeeze/non-free Translation-en
Ign http://http.us.debian.org/debian/ squeeze/non-free Translation-en_US
Ign http://http.us.debian.org squeeze/updates Release.gpg
Hit http://ftp.us.debian.org squeeze-updates/main i386 Packages/DiffIndex
Hit http://ftp.us.debian.org squeeze-updates/contrib i386 Packages   
Hit http://http.us.debian.org squeeze Release                        
Ign http://security.debian.org/ squeeze/updates/non-free Translation-en        
Hit http://ftp.us.debian.org squeeze-updates/main i386 Packages                
Ign http://http.us.debian.org squeeze/updates Release                
Ign http://security.debian.org/ squeeze/updates/non-free Translation-en_US
Hit http://security.debian.org squeeze/updates Release
Hit http://http.us.debian.org squeeze/main Sources
Hit http://security.debian.org squeeze/updates/main i386 Packages
Hit http://http.us.debian.org squeeze/contrib Sources
Hit http://http.us.debian.org squeeze/non-free Sources
Hit http://http.us.debian.org squeeze/main i386 Packages
Hit http://http.us.debian.org squeeze/contrib i386 Packages
Hit http://http.us.debian.org squeeze/non-free i386 Packages
Hit http://security.debian.org squeeze/updates/contrib i386 Packages
Ign http://http.us.debian.org squeeze/updates/main Sources
Hit http://security.debian.org squeeze/updates/non-free i386 Packages
Ign http://http.us.debian.org squeeze/updates/contrib Sources
Ign http://http.us.debian.org squeeze/updates/non-free Sources
Err http://http.us.debian.org squeeze/updates/main Sources
  404  Not Found [IP: 64.50.233.100 80]
Err http://http.us.debian.org squeeze/updates/contrib Sources
  404  Not Found [IP: 64.50.233.100 80]
Err http://http.us.debian.org squeeze/updates/non-free Sources
  404  Not Found [IP: 64.50.233.100 80]
W: Failed to fetch http://http.us.debian.org/debian/dists/squeeze/updates/main/source/Sources.gz  404  Not Found [IP: 64.50.233.100 80]

W: Failed to fetch http://http.us.debian.org/debian/dists/squeeze/updates/contrib/source/Sources.gz  404  Not Found [IP: 64.50.233.100 80]

W: Failed to fetch http://http.us.debian.org/debian/dists/squeeze/updates/non-free/source/Sources.gz  404  Not Found [IP: 64.50.233.100 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.

답변:


1

이것이 작동하려면 /etc/apt/sources.list에이 줄이 있어야합니다.

   deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free

(이것은 내가 wheezy를 실행하기 때문에 wheezy * 대신 압착 을 대체해야합니다 ). 그런 다음 다음 명령을 발행하십시오.

   sudo apt-get update
   sudo apt-get build-dep openoffice.org 

두 번째 답장을 받으십시오.

   > sudo apt-get build-dep openoffice.org                                                                                   
   Reading package lists... Done
   Building dependency tree       
   Reading state information... Done
   The following NEW packages will be installed:
      debhelper gettext html2text intltool-debian libgettextpo0 po-debconf
   0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
   Need to get 3117 kB of archives.
   After this operation, 8471 kB of additional disk space will be used.
   Do you want to continue [Y/n]?

그게 다야.


/etc/apt/sources.list파일 에 이미 해당 줄이 있습니다. 그러나 여전히 오류가 발생합니다.
Tem Pora

@TemPora apt-get update를 실행 했습니까?
MariusMatutiae

예, 나는 그것을 달렸다. 나는 오류를 가지고 W: Failed to fetch http://http.us.debian.org/debian/dists/squeeze/updates/non-free/source/Sources.gz 404 Not Found [IP: 64.50.236.52 80]E: Some index files failed to download, they have been ignored, or old ones used instead.
의 TEM 보라에게

그 서버의 모든 라인을 제거 [IP: 64.50.236.52 80]로부터를 sources.list하고는했다. 왜 http://ftp.us.debian.org/debian/작동하지만 http://http.us.debian.org/debian작동하지 않습니까?
Tem Pora
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.