AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 895622
Accepted
mark
mark
Asked: 2017-03-23 03:30:00 +0800 CST2017-03-23 03:30:00 +0800 CST 2017-03-23 03:30:00 +0800 CST

sudo apt get update 给出错误 - 包缓存文件已损坏

  • 772
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 上。

我的软件:

在此处输入图像描述

apt
  • 1 1 个回答
  • 10365 Views

1 个回答

  • Voted
  1. Best Answer
    Yaron
    2017-03-23T04:08:18+08:002017-03-23T04:08:18+08:00

    您面临的错误是:

    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
    
    • 7

相关问题

  • 如何编写 shell 脚本来安装应用程序列表?

  • 如何查看存档中可用的软件包的所有版本?

  • 是否可以说出我安装的哪些软件包不在原版安装中?

  • 如何删除 PPA?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve