내 적절한 저장소 목록을 엉망으로 만들었습니다. 아마도 언어 패키지에 연결되었을 것입니다.

내 적절한 저장소 목록을 엉망으로 만들었습니다. 아마도 언어 패키지에 연결되었을 것입니다.

내 적절한 저장소 목록이 제대로 작동하지 않는 것 같아서 팝 OS를 업데이트하는 데 문제가 있습니다. 아마도 언어 패키지 문제와 연결되어 있을 것 같지만 이 오류를 제거하는 방법을 모르겠습니다.

내가 할 때

#sudo apt-get update                                                                                                                                                          tcapelle a[55/444]
Hit:1 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease
Hit:2 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal-security InRelease
Hit:3 [http://apt.pop-os.org/proprietary](http://apt.pop-os.org/proprietary) focal InRelease
Hit:4 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal-updates InRelease
Hit:5 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal-backports InRelease
Ign:6 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal/main all Packages
Ign:6 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal/main all Packages
Err:6 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal/main all Packages
404  Not Found \[IP: [91.189.91.38](https://91.189.91.38) 80\]
Hit:7 [http://ppa.launchpad.net/system76/pop/ubuntu](http://ppa.launchpad.net/system76/pop/ubuntu) focal InRelease
Get:8 [https://download.docker.com/linux/ubuntu](https://download.docker.com/linux/ubuntu) focal InRelease \[36.2 kB\]
Hit:9 [https://repo.skype.com/deb](https://repo.skype.com/deb) stable InRelease
Hit:10 [http://packages.microsoft.com/repos/vscode](http://packages.microsoft.com/repos/vscode) stable InRelease
Hit:11 [https://packages.microsoft.com/repos/ms-teams](https://packages.microsoft.com/repos/ms-teams) stable InRelease
Hit:12 [https://packagecloud.io/slacktechnologies/slack/debian](https://packagecloud.io/slacktechnologies/slack/debian) jessie InRelease
Fetched 36.2 kB in 22s (1,661 B/s)
Reading package lists... Done
W: Skipping acquire of configured file 'restricted/source/Sources' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/source/Sources' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse/source/Sources' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/binary-i386/Packages' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/binary-amd64/Packages' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/binary-all/Packages' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/i18n/Translation-en' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/i18n/Translation-en\_US' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/dep11/Components-all.yml' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/dep11/Components-amd64.yml' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/dep11/icons-48x48.tar' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/dep11/icons-64x64.tar' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/dep11/[email protected]' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/dep11/icons-128x128.tar' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/cnf/Commands-all' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/cnf/Commands-amd64' as repository '[http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) focal InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)

source.list 파일을 살펴보면 정상적으로 보입니다.

# deb cdrom:[Pop_OS 20.04 _Focal Fossa_ - Release amd64 (20200617)]/ focal main restricted
deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://apt.pop-os.org/proprietary focal main
# deb-src http://apt.pop-os.org/proprietary focal main

deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu focal stable

다음의 다른 파일:/etc/apt/sources.list.d

drwxr-xr-x 2 root root 4.0K Nov  6 19:29 .
drwxr-xr-x 7 root root 4.0K Nov 12 06:25 ..
-rw-r--r-- 1 root root   69 Aug 10 11:44 bluetooth-ubuntu-bluez-focal.list.save
-rw-r--r-- 1 root root   56 Oct 23 10:26 skype-stable.list
-rw-r--r-- 1 root root  193 Sep 17 14:42 slack.list
-rw-r--r-- 1 root root  193 Sep 17 14:42 slack.list.save
-rw-r--r-- 1 root root   50 Aug 10 11:44 spotify.list.save
-rw-r--r-- 1 root root  124 Sep 17 14:42 system76-ubuntu-pop-focal.list
-rw-r--r-- 1 root root  124 Sep 17 14:42 system76-ubuntu-pop-focal.list.save
-rw-r--r-- 1 root root  196 Oct 16 14:00 teams.list
-rw-r--r-- 1 root root  193 Sep 17 14:42 vscode.list
-rw-r--r-- 1 root root  193 Sep 17 14:42 vscode.list.save

어떤 아이디어?

답변1

이렇게 하면 내 문제가 해결되었습니다. 먼저 손상되었을 수 있는 APT 목록을 정리합니다.

sudo rm /var/lib/apt/lists/* -vf

그런 다음 Debian 패키징 모듈을 정리합니다.

sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad

그리고 잘못된 패키징 모듈을 이전에 작동하는 패키징 모듈로 교체합니다.

sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status

저장소를 업데이트합니다.

sudo apt-get update

답변2

답변은 아니지만 몇 가지 디버그 참고 사항:

  1. 오류에 보고된 IP가 URI에서 올바르게 지정되었습니다.
$ nslookup us.archive.ubuntu.com
Non-authoritative answer:
Name:   us.archive.ubuntu.com
Address: 91.189.91.38

InRelase 파일에 문제가 있는지 확인했을 때 첫 번째 경고에 따라 파일을 검사했습니다.

$ wget http://us.archive.ubuntu.com/ubuntu/dists/focal/InRelease 
$ grep restricted/source/Sources InRelease
 074fdbcb6436a55b3289dd0b1700f747            37681 restricted/source/Sources

이 InRelease 파일에는 확실히 제한된 구성 요소가 있습니다. 그렇지 않더라도 이것이 가리켜야 하는 Sources.gz를 살펴보았는데 확실히 존재합니다.

$ wget http://us.archive.ubuntu.com/ubuntu/dists/focal/restricted/source/Sources.gz
HTTP request sent, awaiting response... 200 OK
Sources.gz                             100%[============================================================================>]   7.03K  --.-KB/s    in 0.02s 

어떤 번역을 찾고 계십니까? 검색해 보면 , , , 안에만 있고 while 안에 만 있는 en_CA것으로 나타났습니다.mainuniverserumainmultiverserestricteduniverse

$ grep Translation-en_CA InRelease
 8e43eb4048d41d24b070726f61de4a0d            11684 main/i18n/Translation-en_CA
 694465955cefc44304388cc9e66a9ae8             1858 universe/i18n/Translation-en_CA

$ grep Translation-ru InRelease
 07e6358033ea05ed3dd0217fad125bec          2574447 main/i18n/Translation-ru
 a511b443d0a0ad65aef4fac59f2d7d2a           316225 multiverse/i18n/Translation-ru
 6586f7f8446a61e48ff1a4e65b800a2d             8515 restricted/i18n/Translation-ru
 f7b3223a7dae2f917dda9d19473ce67b          8102575 universe/i18n/Translation-ru

관련 정보