如何修复损坏的存储库信息?

我的指标小程序中有一个小的红叉图标,在hover时它表示检查更新时发生错误。 因此,我无法通过synaptic编辑选定的存储库,而synaptic拒绝打开对话框,而只是尝试更新包列表。

Get:1 http://dl.google.com stable Release.gpg [197B] Hit http://archive.ubuntu.com maverick Release.gpg Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en Hit http://extras.ubuntu.com maverick Release.gpg Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en Hit http://ppa.launchpad.net maverick Release.gpg Ign http://ppa.launchpad.net/elementaryart/ppa/ubuntu/ maverick/main Translation-en Ign http://ppa.launchpad.net/elementaryart/ppa/ubuntu/ maverick/main Translation-en_GB Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en Hit http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en_GB Ign http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en Hit http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_GB Ign http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en Hit http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_GB Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en Hit http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_GB Hit http://archive.ubuntu.com maverick-updates Release.gpg Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en_GB Hit http://extras.ubuntu.com maverick Release Hit http://ppa.launchpad.net maverick Release.gpg Ign http://ppa.launchpad.net/nikount/orta-desktop/ubuntu/ maverick/main Translation-en Ign http://ppa.launchpad.net/nikount/orta-desktop/ubuntu/ maverick/main Translation-en_GB Hit http://ppa.launchpad.net maverick Release.gpg Ign http://ppa.launchpad.net/stk/dev/ubuntu/ maverick/main Translation-en Ign http://ppa.launchpad.net/stk/dev/ubuntu/ maverick/main Translation-en_GB Hit http://ppa.launchpad.net maverick Release.gpg Ign http://ppa.launchpad.net/tiheum/equinox/ubuntu/ maverick/main Translation-en Ign http://ppa.launchpad.net/tiheum/equinox/ubuntu/ maverick/main Translation-en_GB Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_GB Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en_GB Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en_GB Hit http://ppa.launchpad.net maverick Release Hit http://ppa.launchpad.net maverick Release Hit http://ppa.launchpad.net maverick Release Hit http://extras.ubuntu.com maverick/main Sources Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_GB Hit http://archive.ubuntu.com maverick-security Release.gpg Ign http://archive.ubuntu.com/ubuntu/ maverick-security/main Translation-en Ign http://archive.ubuntu.com/ubuntu/ maverick-security/main Translation-en_GB Hit http://ppa.launchpad.net maverick Release Hit http://extras.ubuntu.com maverick/main i386 Packages Ign http://archive.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en Ign http://archive.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en_GB Ign http://archive.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en Ign http://archive.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en_GB Ign http://archive.ubuntu.com/ubuntu/ maverick-security/universe Translation-en Hit http://ppa.launchpad.net maverick/main Sources Hit http://ppa.launchpad.net maverick/main i386 Packages Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_GB Ign http://archive.ubuntu.com/ubuntu/ maverick-security/universe Translation-en_GB Hit http://archive.ubuntu.com maverick Release Hit http://archive.ubuntu.com maverick-updates Release Hit http://archive.ubuntu.com maverick-security Release Hit http://ppa.launchpad.net maverick/main Sources Hit http://ppa.launchpad.net maverick/main i386 Packages Hit http://ppa.launchpad.net maverick/main Sources Hit http://ppa.launchpad.net maverick/main i386 Packages Get:2 http://dl.google.com stable Release.gpg [197B] Hit http://archive.ubuntu.com maverick/main Sources Hit http://ppa.launchpad.net maverick/main Sources Hit http://ppa.launchpad.net maverick/main i386 Packages Hit http://archive.ubuntu.com maverick/restricted Sources Hit http://archive.ubuntu.com maverick/universe Sources Hit http://archive.ubuntu.com maverick/multiverse Sources Hit http://archive.ubuntu.com maverick/main i386 Packages Hit http://archive.ubuntu.com maverick/restricted i386 Packages Hit http://archive.ubuntu.com maverick/universe i386 Packages Hit http://archive.ubuntu.com maverick/multiverse i386 Packages Hit http://archive.ubuntu.com maverick-updates/main Sources Ign http://dl.google.com/linux/talkplugin/deb/ stable/main Translation-en Hit http://archive.ubuntu.com maverick-updates/restricted Sources Hit http://archive.ubuntu.com maverick-updates/universe Sources Hit http://archive.ubuntu.com maverick-updates/multiverse Sources Hit http://archive.ubuntu.com maverick-updates/main i386 Packages Hit http://archive.ubuntu.com maverick-updates/restricted i386 Packages Hit http://archive.ubuntu.com maverick-updates/universe i386 Packages Hit http://archive.ubuntu.com maverick-updates/multiverse i386 Packages Ign http://dl.google.com/linux/talkplugin/deb/ stable/main Translation-en_GB Get:3 http://dl.google.com stable Release [1,347B] Hit http://archive.ubuntu.com maverick-security/main Sources Hit http://archive.ubuntu.com maverick-security/restricted Sources Hit http://archive.ubuntu.com maverick-security/universe Sources Hit http://archive.ubuntu.com maverick-security/multiverse Sources Hit http://archive.ubuntu.com maverick-security/main i386 Packages Hit http://archive.ubuntu.com maverick-security/restricted i386 Packages Hit http://archive.ubuntu.com maverick-security/universe i386 Packages Get:4 http://dl.google.com stable Release [1,347B] Hit http://archive.ubuntu.com maverick-security/multiverse i386 Packages Get:5 http://dl.google.com stable/main i386 Packages [1,076B] Get:6 http://dl.google.com stable/main i386 Packages [735B] Fetched 4,899B in 4s (1,060B/s) Reading package lists... 

第一步是删除“中间人”工具并使用代表您调用的命令:

  sudo apt-get check && sudo apt-get update # you may need to repeat the update if it complains sudo apt-get upgrade 

当附加到原始问题时,这些命令生成的任何错误都将提供最丰富的信息。 如果check失败,请按照指示或停止并发布结果。

我刚遇到同样的问题,发现一个更新的/etc/apt/sources.list文件与前一个文件有所不同,因为它使用了http://76.73.4.58/ubuntu而不是us.archive.ubuntu.com/ubuntu。 当我用旧的source.list文件替换最新的sources.list文件时,apt-get升级工作。

您需要调整sources.list文件然后运行sudo apt-get update然后运行sudo apt-get upgrade

那些ignore声明是因为您仍然可以使用像us.archive.ubuntu.com这样的当前域名

只需在/etc/apt/sources.list确保您拥有所有存储库的http://old.releases.ubuntu.com

这是我必须测试的修复程序的videourl: https : //youtu.be/dDWwcW5e6eI