Apt-get无法从Ubuntu服务器获取错误代码404
我刚刚从10.04更新到Oneiric,现在我再也无法使用apt-get
了。 当我这样做时,我收到以下错误:
点击http://security.ubuntu.com oneiric-security InRelease Ign http://archive.ubuntu.com oneiric InRelease Ign http://archive.ubuntu.com oneiric-updates InRelease 点击http://security.ubuntu.com oneiric-security Release.gpg 点击http://archive.ubuntu.com oneiric Release.gpg 点击http://security.ubuntu.com oneiric-security发布 Ign http://archive.ubuntu.com oneiric-updates Release.gpg Ign http://archive.ubuntu.com oneiric Release Ign http://archive.ubuntu.com oneiric-updates发布 点击http://security.ubuntu.com oneiric-security / main TranslationIndex Ign http://security.ubuntu.com oneiric-security / multiverse TranslationIndex Ign http://security.ubuntu.com oneiric-security / restricted TranslationIndex 点击http://archive.ubuntu.com oneiric / main TranslationIndex Ign http://security.ubuntu.com oneiric-security / universe TranslationIndex 点击http://archive.ubuntu.com oneiric / multiverse TranslationIndex Ign http://archive.ubuntu.com oneiric / restricted TranslationIndex Ign http://archive.ubuntu.com oneiric / universe TranslationIndex Ign http://archive.ubuntu.com oneiric-updates / main TranslationIndex Ign http://archive.ubuntu.com oneiric-updates / multiverse TranslationIndex Ign http://archive.ubuntu.com oneiric-updates / restricted TranslationIndex Ign http://archive.ubuntu.com oneiric-updates / universe TranslationIndex 错误http://security.ubuntu.com oneiric-security / universe amd64包 404未找到 错误http://security.ubuntu.com oneiric-security / main amd64包 404未找到 错误http://security.ubuntu.com oneiric-security / restricted amd64包 404未找到 错误http://security.ubuntu.com oneiric-security / multiverse amd64包 404未找到 错误http://security.ubuntu.com oneiric-security / universe i386包 404未找到 错误http://security.ubuntu.com oneiric-security / main i386包 404未找到 错误http://security.ubuntu.com oneiric-security / restricted i386包 404未找到 错误http://security.ubuntu.com oneiric-security / multiverse i386包 404未找到 Ign http://security.ubuntu.com oneiric-security / main Translation-en_US Ign http://security.ubuntu.com oneiric-security / main Translation-en 点击http://security.ubuntu.com oneiric-security / multiverse Translation-en_US Ign http://security.ubuntu.com oneiric-security / multiverse Translation-en 点击http://security.ubuntu.com oneiric-security / restricted Translation-en_US 点击http://security.ubuntu.com oneiric-security / restricted Translation-en Ign http://security.ubuntu.com oneiric-security / universe Translation-en_US Ign http://security.ubuntu.com oneiric-security / universe Translation-en 错误http://archive.ubuntu.com oneiric / main amd64包 404未找到 错误http://archive.ubuntu.com oneiric / universe amd64包 404未找到 Err http://archive.ubuntu.com oneiric / restricted amd64包 404未找到 Err http://archive.ubuntu.com oneiric / multiverse amd64包 404未找到 错误http://archive.ubuntu.com oneiric / main i386包 404未找到 错误http://archive.ubuntu.com oneiric / universe i386包 404未找到 Err http://archive.ubuntu.com oneiric / restricted i386软件包 404未找到 Err http://archive.ubuntu.com oneiric / multiverse i386包 404未找到 错误http://archive.ubuntu.com oneiric-updates / universe amd64包 404未找到 错误http://archive.ubuntu.com oneiric-updates / main amd64包 404未找到 错误http://archive.ubuntu.com oneiric-updates / restricted amd64包 404未找到 错误http://archive.ubuntu.com oneiric-updates / multiverse amd64包 404未找到 错误http://archive.ubuntu.com oneiric-updates / universe i386包 404未找到 Err http://archive.ubuntu.com oneiric-updates / main i386包 404未找到 Err http://archive.ubuntu.com oneiric-updates / restricted i386软件包 404未找到 错误http://archive.ubuntu.com oneiric-updates / multiverse i386包 404未找到 Ign http://archive.ubuntu.com oneiric / main Translation-en_US Ign http://archive.ubuntu.com oneiric / main Translation-en Ign http://archive.ubuntu.com oneiric / multiverse Translation-en_US Ign http://archive.ubuntu.com oneiric / multiverse Translation-en Ign http://archive.ubuntu.com oneiric / restricted Translation-en_US Ign http://archive.ubuntu.com oneiric / restricted Translation-en 点击http://archive.ubuntu.com oneiric / universe Translation-en_US Ign http://archive.ubuntu.com oneiric / universe Translation-en Ign http://archive.ubuntu.com oneiric-updates / main Translation-en_US Ign http://archive.ubuntu.com oneiric-updates / main Translation-en Ign http://archive.ubuntu.com oneiric-updates / multiverse Translation-en_US Ign http://archive.ubuntu.com oneiric-updates / multiverse Translation-en Ign http://archive.ubuntu.com oneiric-updates / restricted Translation-en_US Ign http://archive.ubuntu.com oneiric-updates / restricted Translation-en Ign http://archive.ubuntu.com oneiric-updates / universe Translation-en_US Ign http://archive.ubuntu.com oneiric-updates / universe Translation-en
我可以ping任何计算机并访问互联网。 sudo apt-get update
和apt-get upgrade
不起作用(也不干净或自动清除), dpkg --configure -a
也没有帮助。 有任何想法吗?
对我来说就像一个网络问题,你是代理人吗? 如果是这样,您的配置可能会被堵塞。
看看你的etc/apt/apt.conf
文件并检查那里的代理设置。
( 在讨论评论问题后由相关用户添加 )
解 miguel @ miguel-VirtualBox:〜$ cat gedit /etc/apt/apt.conf #错误!!! #Acquire :: http :: Proxy“http://proxyconf/proxy.pac”; 获取:: http :: Proxy“http://17X.XX.XX.X:8080”;
这是网络设置的问题 – 设置了无效的代理导致问题。
而已! 无处不在说要将你的代理服务器添加到/etc/apt/apt.conf,但是我添加了我在系统范围内使用的代理URL(即Chrome等)并没有任何乐趣。 但是,如果从代理URL下载.pac文件,则可以确定要重定向到的实际代理服务器(通常基于您的IP地址),在/etc/apt/apt.conf中使用该URL / IP它对我有用! 谢谢
基于之前的post,我遇到了与Ubuntu 14.04上面描述的相同的问题。 我不是在代理的后面,但仍然得到错误404,指向我本地网络上的一个糟糕的资源(一个小的NAS适配器,我无法控制这个问题)。 在我的计算机上添加/配置本地代理(选择了Squid3)并配置apt-get指向解决了我的网络问题。