web-dev-qa-db-ja.com

sudo apt get updateでエラーが発生-パッケージキャッシュファイルが破損しています

vegan@vegan:~$ Sudo apt-get update 
Hit:1 http://ppa.launchpad.net/fish-Shell/release-2/ubuntu xenial InRelease 
Ign:2 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease                     
Ign:3 http://archive.ubuntu.com/ubuntu precise InRelease
Get:4 http://security.ubuntu.com/ubuntu precise-security InRelease [55,7 kB] 
Get:5 http://archive.ubuntu.com/ubuntu precise-updates InRelease [55,7 kB]                               
Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease                    
Hit:7 https://deb.nodesource.com/node_6.x xenial InRelease             
Hit:8 http://archive.ubuntu.com/ubuntu precise-backports InRelease     
Get:9 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release [1.187 B] 
Get:10 http://archive.ubuntu.com/ubuntu precise Release [49,6 kB]                    
Get:11 http://archive.ubuntu.com/ubuntu precise Release.gpg [198 B]           
Hit:12 http://dl.google.com/linux/chrome/deb stable Release            
Get:13 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release.gpg [916 B] Fetched 162 kB in 0s (187 kB/s)                    
Reading package lists... Error! 
W: http://archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1) 
W: http://security.ubuntu.com/ubuntu/dists/precise-security/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1) 
W: http://archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1) 
W: http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1) 
E: Unable to parse package file /var/lib/apt/lists/dl.google.com_linux_chrome-remote-desktop_deb_dists_stable_main_binary-AMD64_Packages (1) 
W: You may want to run apt-get update to correct these problems 
E: The package cache file is corrupted

ただし、アップグレードの場合はエラーなし

vegan@vegan:~$ Sudo apt-get upgrade
[Sudo] password for vegan: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  rlwrap
Use 'Sudo apt autoremove' to remove it.
The following packages have been kept back:
  tzdata-Java
The following packages will be upgraded:
  firefox firefox-locale-en google-chrome-stable nodejs
4 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 114 MB of archives.
After this operation, 98,3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.ubuntu.com/ubuntu precise-security/main AMD64 firefox AMD64 52.0.1+build2-0ubuntu0.12.04.1 [55,5 MB]
Get:2 http://dl.google.com/linux/chrome/deb stable/main AMD64 google-chrome-stable AMD64 57.0.2987.110-1 [47,3 MB]
Get:3 https://deb.nodesource.com/node_6.x xenial/main AMD64 nodejs AMD64 6.10.1-1nodesource1~xenial1 [10,0 MB]
Get:4 http://security.ubuntu.com/ubuntu precise-security/main AMD64 firefox-locale-en AMD64 52.0.1+build2-0ubuntu0.12.04.1 [766 kB]                                                                          
Fetched 114 MB in 1min 3s (1.800 kB/s)                                                                                                                                                                       
(Reading database ... 293152 files and directories currently installed.)
Preparing to unpack .../google-chrome-stable_57.0.2987.110-1_AMD64.deb ...
Unpacking google-chrome-stable (57.0.2987.110-1) over (57.0.2987.98-1) ...
Preparing to unpack .../firefox_52.0.1+build2-0ubuntu0.12.04.1_AMD64.deb ...
Unpacking firefox (52.0.1+build2-0ubuntu0.12.04.1) over (52.0+build2-0ubuntu0.12.04.1) ...
Preparing to unpack .../firefox-locale-en_52.0.1+build2-0ubuntu0.12.04.1_AMD64.deb ...
Unpacking firefox-locale-en (52.0.1+build2-0ubuntu0.12.04.1) over (52.0+build2-0ubuntu0.12.04.1) ...
Preparing to unpack .../nodejs_6.10.1-1nodesource1~xenial1_AMD64.deb ...
Detected old npm client, removing...
Unpacking nodejs (6.10.1-1nodesource1~xenial1) over (6.10.0-1nodesource1~xenial1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up google-chrome-stable (57.0.2987.110-1) ...
Setting up firefox (52.0.1+build2-0ubuntu0.12.04.1) ...
Please restart all running instances of firefox, or you will experience problems.
Setting up firefox-locale-en (52.0.1+build2-0ubuntu0.12.04.1) ...
Setting up nodejs (6.10.1-1nodesource1~xenial1) ...

これはUbuntu 16.04にあります。

私のソフトウェア:

enter image description here

4
mark

あなたが直面しているエラーは次のとおりです。

E:パッケージファイル/var/lib/apt/lists/dl.google.com_linux_chrome-remote-desktop_deb_dists_stable_main_binary-AMD64_Packages(1)を解析できません

このパッケージファイルを削除してみてください。

Sudo rm /var/lib/apt/lists/dl.google.com_linux_chrome-remote-desktop_deb_dists_stable_main_binary-AMD64_Packages

続いて:

Sudo apt update
5
Yaron