需要重新安装 evince 软件包

需要重新安装 evince 软件包

sudo apt-get upgrade出现以下错误

E: The package evince needs to be reinstalled, but I can't find an archive for it.

我试过的 sudo dpkg --clear-avail && sudo apt-get update 结果:

    Hit:1 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial InRelease
Hit:2 http://ro.archive.ubuntu.com/ubuntu xenial InRelease                                                                             
...
...
Ign:12 http://ppa.launchpad.net/skunk/pepper-flash/ubuntu xenial/main DEP-11 64x64 Icons
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/skunk/pepper-flash/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/skunk/pepper-flash/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

编辑:

   apt-cache policy evince
Gives:
evince:
  Installed: 3.18.2-1ubuntu4.2
  Candidate: 3.18.2-1ubuntu4.2
  Version table:
 *** 3.18.2-1ubuntu4.2 100
        100 /var/lib/dpkg/status
     3.18.2-1ubuntu4 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://ro.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

编辑2:

evince:
Installed: 3.18.2-1ubuntu4.2
Candidate: 3.18.2-1ubuntu4.2
Version table:
*** 3.18.2-1ubuntu4.2 100
       100 /var/lib/dpkg/status
    3.18.2-1ubuntu4 500
       500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
       500 http://ro.archive.ubuntu.com/ubuntu xenial/main amd64 
 Packages

尝试:启用 xenial-updates 存储库:

4.1. 启动软件和更新

4.2. 在 Ubuntu 软件选项卡上,确保您已选中前四个标记,在从下拉列表中下载中选择主服务器(以获得更可预测的结果)

4.3. 在“更新”选项卡上,确保您已选中两个标记(重要安全更新(xenial-security)、推荐更新(xenial-updates))

4.4. 按“关闭”并确认“重新加载包列表”。

出现以下错误:

E:The package evince needs to be reinstalled, but I can't find an archive for it.

答案1

  1. 您的错误中提到的 PPA没有适用于 Ubuntu 16.04 的软件包,

如果您已经从 PPA 安装了软件包,请使用以下命令删除它:

sudo ppa-purge ppa:skunk/pepper-flash

或者使用以下命令将其从源中删除:

sudo add-apt-repository -r ppa:skunk/pepper-flash

然后sudo apt-get update再次运行以检查一切是否已修复。

  1. 请更新您的问题以apt-cache policy evince确定其来源。
  2. 清除 APT 缓存和列表,然后使用以下命令再次安装 evince:

    sudo apt-get clean
    sudo rm -rf /var/lib/apt/lists/*
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install evince
    
  3. 启用 xenial-updates 存储库:
    4.1.启动软件与更新
    4.2. 关于Ubuntu 软件确保你已经检查了前四个标记,下载自下拉列表选择主服务器 (为了获得更可预测的结果)4.3.更新选项卡确保您已选中两个标记(重要安全更新(xenial-security)推荐更新(xenial-updates))
    4.4. 按关闭并确认重新加载包裹清单。

  4. 编辑您的/etc/apt/sources.listsudo gedit /etc/apt/sources.list放置我的文件内容向其中添加注释。您可以注释掉您手动添加的存储库。然后重新开始。

  5. 安装 aptitude 并尝试sudo apt-get install -fsudo aptitude dist-upgrade -f然后sudo aptitude reinstall -f evince

相关内容