运行sudo apt-get update
命令,我收到以下错误:
Fetched 988 kB in 16s (59,3 kB/s)
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty/restricted/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty/universe/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty/multiverse/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty/restricted/binary-i386/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty/universe/binary-i386/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty/multiverse/binary-i386/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-updates/restricted/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-updates/multiverse/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-updates/restricted/binary-i386/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-i386/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-updates/multiverse/binary-i386/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-security/restricted/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-security/multiverse/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-security/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-security/restricted/binary-i386/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-i386/Packages 404 Not Found
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/trusty-security/multiverse/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.getdeb.net/ubuntu/dists/rebecca-getdeb/apps/binary-amd64/Packages 404 Not Found [IP: 104.28.24.125 80]
W: Failed to fetch http://archive.getdeb.net/ubuntu/dists/rebecca-getdeb/apps/binary-i386/Packages 404 Not Found [IP: 104.28.24.125 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
我知道要解决此类错误,我必须修改sudo gedit /etc/apt/sources.list
,但是,在这种情况下,我只发现了这些:
#deb cdrom:[Linux Mint 17.1 _Rebecca_ - Release amd64 20141126]/ trusty contrib main non-free
deb http://download.virtualbox.org/virtualbox/debian trusty contrib
deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ trusty/
/etc/apt/source.list.d
是空的。sudo apt-cache policy
给出:
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu/ trusty/main Translation-en
500 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu/ trusty/main i386 Packages
release v=14.04,o=LP-PPA-ubuntuhandbook1-apps,a=trusty,n=trusty,l=Apps,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=LP-PPA-ubuntuhandbook1-apps,a=trusty,n=trusty,l=Apps,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main Translation-en
500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main i386 Packages
release v=14.04,o=LP-PPA-ubuntu-wine,a=trusty,n=trusty,l=Wine Team PPA,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=LP-PPA-ubuntu-wine,a=trusty,n=trusty,l=Wine Team PPA,c=main
origin ppa.launchpad.net
500 http://deb.playonlinux.com/ saucy/main i386 Packages
release v=13.10,o=PlayOnLinux,a=saucy,n=saucy,l=PoL,c=main
origin deb.playonlinux.com
500 http://deb.playonlinux.com/ saucy/main amd64 Packages
release v=13.10,o=PlayOnLinux,a=saucy,n=saucy,l=PoL,c=main
origin deb.playonlinux.com
500 http://archive.canonical.com/ubuntu/ trusty/partner Translation-en
500 http://archive.canonical.com/ubuntu/ trusty/partner i386 Packages
release v=14.04,o=Canonical,a=trusty,n=trusty,l=Partner archive,c=partner
origin archive.canonical.com
500 http://archive.canonical.com/ubuntu/ trusty/partner amd64 Packages
release v=14.04,o=Canonical,a=trusty,n=trusty,l=Partner archive,c=partner
origin archive.canonical.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/universe Translation-en
500 http://security.ubuntu.com/ubuntu/ trusty-security/restricted Translation-en
500 http://security.ubuntu.com/ubuntu/ trusty-security/multiverse Translation-en
500 http://security.ubuntu.com/ubuntu/ trusty-security/main Translation-en
500 http://security.ubuntu.com/ubuntu/ trusty-security/multiverse i386 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=multiverse
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=universe
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/restricted i386 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=restricted
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/main i386 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=main
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/multiverse amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=multiverse
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/universe amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=universe
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/restricted amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=restricted
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=main
origin security.ubuntu.com
700 http://extra.linuxmint.com/ rebecca/main i386 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=main
origin extra.linuxmint.com
700 http://extra.linuxmint.com/ rebecca/main amd64 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=main
origin extra.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/import i386 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=import
origin packages.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/upstream i386 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=upstream
origin packages.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/main i386 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=main
origin packages.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/import amd64 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=import
origin packages.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/upstream amd64 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=upstream
origin packages.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/main amd64 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=main
origin packages.linuxmint.com
500 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu/ trusty/main Translation-en
500 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu/ trusty/main i386 Packages
release v=14.04,o=LP-PPA-notepadqq-team-notepadqq,a=trusty,n=trusty,l=Notepadqq,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=LP-PPA-notepadqq-team-notepadqq,a=trusty,n=trusty,l=Notepadqq,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/noobslab/themes/ubuntu/ trusty/main Translation-en
500 http://ppa.launchpad.net/noobslab/themes/ubuntu/ trusty/main i386 Packages
release v=14.04,o=LP-PPA-noobslab-themes,a=trusty,n=trusty,l=Themes Collection by NoobsLab,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/noobslab/themes/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=LP-PPA-noobslab-themes,a=trusty,n=trusty,l=Themes Collection by NoobsLab,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/moka/stable/ubuntu/ trusty/main Translation-en
500 http://ppa.launchpad.net/moka/stable/ubuntu/ trusty/main i386 Packages
release v=14.04,o=LP-PPA-moka-stable,a=trusty,n=trusty,l=Moka Stable,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/moka/stable/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=LP-PPA-moka-stable,a=trusty,n=trusty,l=Moka Stable,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/lyx-devel/release/ubuntu/ trusty/main Translation-en
500 http://ppa.launchpad.net/lyx-devel/release/ubuntu/ trusty/main i386 Packages
release v=14.04,o=LP-PPA-lyx-devel-release,a=trusty,n=trusty,l=LyX PPA (release),c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/lyx-devel/release/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=LP-PPA-lyx-devel-release,a=trusty,n=trusty,l=LyX PPA (release),c=main
origin ppa.launchpad.net
500 http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages
release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
origin dl.google.com
500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages
release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
origin dl.google.com
500 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu/ trusty/main i386 Packages
release v=14.04,o=LP-PPA-gezakovacs,a=trusty,n=trusty,l=UNetbootin PPA,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=LP-PPA-gezakovacs,a=trusty,n=trusty,l=UNetbootin PPA,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/fossfreedom/rhythmbox/ubuntu/ trusty/main Translation-en
500 http://ppa.launchpad.net/fossfreedom/rhythmbox/ubuntu/ trusty/main i386 Packages
release v=14.04,o=LP-PPA-fossfreedom-rhythmbox,a=trusty,n=trusty,l=Rhythmbox,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/fossfreedom/rhythmbox/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=LP-PPA-fossfreedom-rhythmbox,a=trusty,n=trusty,l=Rhythmbox,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/costales/folder-color/ubuntu/ trusty/main Translation-en
500 http://ppa.launchpad.net/costales/folder-color/ubuntu/ trusty/main i386 Packages
release v=14.04,o=LP-PPA-costales-folder-color,a=trusty,n=trusty,l=Folder Color,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/costales/folder-color/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=LP-PPA-costales-folder-color,a=trusty,n=trusty,l=Folder Color,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/atareao/telegram/ubuntu/ trusty/main Translation-en
500 http://ppa.launchpad.net/atareao/telegram/ubuntu/ trusty/main i386 Packages
release v=14.04,o=LP-PPA-atareao-telegram,a=trusty,n=trusty,l=Telegram,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/atareao/telegram/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=LP-PPA-atareao-telegram,a=trusty,n=trusty,l=Telegram,c=main
origin ppa.launchpad.net
500 http://repository.spotify.com/ stable/non-free i386 Packages
origin repository.spotify.com
500 http://repository.spotify.com/ stable/non-free amd64 Packages
origin repository.spotify.com
500 http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ trusty/ Packages
release v=14.04,o=CRAN,a=trusty,n=trusty,l=CRAN,c=
origin cran.cnr.berkeley.edu
700 http://download.virtualbox.org/virtualbox/debian/ quantal/contrib i386 Packages
origin download.virtualbox.org
700 http://download.virtualbox.org/virtualbox/debian/ quantal/contrib amd64 Packages
origin download.virtualbox.org
Pinned packages:
运行命令inxi -r
我得到:
Active apt sources in file: /etc/apt/sources.list
deb http://download.virtualbox.org/virtualbox/debian trusty contrib
deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ trusty/
Active apt sources in file: /etc/apt/sources.list.d/additional-repositories.list
deb http://repository.spotify.com stable non-free
Active apt sources in file: /etc/apt/sources.list.d/atareao-telegram-trusty.list
deb http://ppa.launchpad.net/atareao/telegram/ubuntu trusty main
deb-src http://ppa.launchpad.net/atareao/telegram/ubuntu trusty main
Active apt sources in file: /etc/apt/sources.list.d/costales-folder-color-trusty.list
deb http://ppa.launchpad.net/costales/folder-color/ubuntu trusty main
deb-src http://ppa.launchpad.net/costales/folder-color/ubuntu trusty main
Active apt sources in file: /etc/apt/sources.list.d/fossfreedom-rhythmbox-trusty.list
deb http://ppa.launchpad.net/fossfreedom/rhythmbox/ubuntu trusty main
deb-src http://ppa.launchpad.net/fossfreedom/rhythmbox/ubuntu trusty main
Active apt sources in file: /etc/apt/sources.list.d/getdeb.list
deb http://archive.getdeb.net/ubuntu rebecca-getdeb apps
Active apt sources in file: /etc/apt/sources.list.d/gezakovacs-ppa-trusty.list
deb http://ppa.launchpad.net/gezakovacs/ppa/ubuntu trusty main
deb-src http://ppa.launchpad.net/gezakovacs/ppa/ubuntu trusty main
Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list
deb http://dl.google.com/linux/chrome/deb/ stable main
Active apt sources in file: /etc/apt/sources.list.d/lyx-devel-release-trusty.list
deb http://ppa.launchpad.net/lyx-devel/release/ubuntu trusty main
deb-src http://ppa.launchpad.net/lyx-devel/release/ubuntu trusty main
Active apt sources in file: /etc/apt/sources.list.d/moka-stable-trusty.list
deb http://ppa.launchpad.net/moka/stable/ubuntu trusty main
deb-src http://ppa.launchpad.net/moka/stable/ubuntu trusty main
Active apt sources in file: /etc/apt/sources.list.d/noobslab-themes-trusty.list
deb http://ppa.launchpad.net/noobslab/themes/ubuntu trusty main
deb-src http://ppa.launchpad.net/noobslab/themes/ubuntu trusty main
Active apt sources in file: /etc/apt/sources.list.d/notepadqq-team-notepadqq-trusty.list
deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu trusty main
deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu trusty main
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com rebecca main upstream import
deb http://extra.linuxmint.com rebecca main
deb http://old-releases.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner
Active apt sources in file: /etc/apt/sources.list.d/playonlinux.list
deb http://deb.playonlinux.com/ saucy main
Active apt sources in file: /etc/apt/sources.list.d/ubuntu-wine-ppa-trusty.list
deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main
deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main
Active apt sources in file: /etc/apt/sources.list.d/ubuntuhandbook1-apps-trusty.list
deb http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu trusty main
deb-src http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu trusty main
运行cd /etc/apt/sources.list.d
,ls -la
我得到:
total 60
4 -rw-r--r-- 1 root root 50 Apr 5 21:26 additional-repositories.list
4 -rw-r--r-- 1 root root 134 Mar 21 19:59 atareao-telegram-trusty.list
4 -rw-r--r-- 1 root root 144 Apr 4 11:18 costales-folder-color-trusty.list
4 -rw-r--r-- 1 root root 144 Mar 27 14:10 fossfreedom-rhythmbox-trusty.list
4 -rw-r--r-- 1 root root 57 May 1 02:23 getdeb.list
4 -rw-r--r-- 1 root root 130 Apr 2 14:31 gezakovacs-ppa-trusty.list
4 -rw-r--r-- 1 root root 176 Apr 5 21:26 google-chrome.list
4 -rw-r--r-- 1 root root 136 Mar 25 23:04 lyx-devel-release-trusty.list
4 -rw-r--r-- 1 root root 124 Mar 23 02:27 moka-stable-trusty.list
4 -rw-r--r-- 1 root root 132 Mar 23 13:43 noobslab-themes-trusty.list
4 -rw-r--r-- 1 root root 150 Apr 6 21:43 notepadqq-team-notepadqq-trusty.list
4 -rw-r--r-- 1 root root 470 May 1 22:55 official-package-repositories.list
4 -rw-r--r-- 1 root root 43 Feb 27 22:06 playonlinux.list
4 -rw-r--r-- 1 root root 142 Mar 23 22:44 ubuntuhandbook1-apps-trusty.list
4 -rw-r--r-- 1 root root 132 Apr 14 00:34 ubuntu-wine-ppa-trusty.list
有人可以提出解决方案吗?
答案1
对于问题中的错误消息中提到的每个网址,进行搜索。然后将其从 中的相关文件中删除/etc/apt/sources.list.
。
例如
cd /etc/apt/sources.list.d
grep -R http://old-releases.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages
这将为您提供/etc/apt/sources.list.d
.然后进入该文件,删除相应的行,或使用#
注释字符将其编辑掉。据我所知,您看到的所有错误消息都来自/etc/apt/sources.list.d
.
答案2
sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
会解决问题
然后输入
sudo apt-get update
希望这能解决你的问题
答案3
看来我的 Mint 17.1 没有使用 /etc/apt/sources.list,而是 /etc/apt/sources.list.d/official-package-repositories.list
请尝试以下命令:
# inxi -r
让我知道你得到了什么。
答案4
存储库:文件中的活动 apt 源:/etc/apt/sources.list debhttp://packages.linuxmint.com/debian 主要上游导入 deb ht tp://debian.linuxmint.com/latest 测试主要 contrib 非自由 deb ht tp://debian.linuxmint.com/latest/security testing/updates main contrib 非自由 deb h ttp: // debian.linuxmint.com/latest/multimedia 测试文件中的主要非自由活动 apt 源:/etc/apt/sources.list.d/official-package-repositories.list deb ht tp://packages.linuxmint。 com rebecca main upper import deb h tp://extra.linuxmint.com rebecca main deb ht tp://archive.ubuntu.com/ubuntu trusty main 受限宇宙多元宇宙 deb ht tp://archive.ubuntu.com/ubuntu trusty -更新主要受限宇宙多元宇宙 deb ht tp://security.ubuntu.com/ubuntu/ trusty-security 主要受限宇宙多元宇宙 deb ht tp://archive.canonical.com/ubuntu/ trusty Partner 文件中的活动 apt 源:/ etc/apt/sources.list.d/pgdg.list deb ht tp:// apt.postgresql.org/pub/repos/apt/ trusty-pgdg main