执行sudo apt-get update总会出现下面这一串

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
小草帽boy
帖子: 16
注册时间: 2017-12-29 1:12
系统: linux

执行sudo apt-get update总会出现下面这一串

#1

帖子 小草帽boy » 2018-01-13 22:59

如题:

wuzsh5@wuzsh5-X555UJ:/etc/apt$ sudo apt-get update
命中:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial InRelease
命中:2 http://cn.archive.ubuntu.com/ubuntu xenial InRelease
命中:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates InRelease
命中:4 http://ppa.launchpad.net/atareao/atareao/ubuntu xenial InRelease
命中:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports InRelease
命中:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security InRelease
命中:7 http://ppa.launchpad.net/diesch/testing/ubuntu xenial InRelease
命中:8 http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease
命中:9 http://ppa.launchpad.net/webupd8team/su ... t-3/ubuntu xenial InRelease
命中:10 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial InRelease
正在读取软件包列表... 完成
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'main/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'restricted/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'universe/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'multiverse/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'http://cn.archive.ubuntu.com/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'multiverse/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'http://cn.archive.ubuntu.com/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'restricted/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'http://cn.archive.ubuntu.com/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'universe/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'http://cn.archive.ubuntu.com/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'main/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates InRelease' 不支持 'x86' 体系结构,跳过配置文件 'main/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates InRelease' 不支持 'x86' 体系结构,跳过配置文件 'restricted/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates InRelease' 不支持 'x86' 体系结构,跳过配置文件 'universe/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates InRelease' 不支持 'x86' 体系结构,跳过配置文件 'multiverse/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'http://ppa.launchpad.net/atareao/atareao/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'main/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports InRelease' 不支持 'x86' 体系结构,跳过配置文件 'main/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports InRelease' 不支持 'x86' 体系结构,跳过配置文件 'restricted/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports InRelease' 不支持 'x86' 体系结构,跳过配置文件 'universe/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports InRelease' 不支持 'x86' 体系结构,跳过配置文件 'multiverse/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security InRelease' 不支持 'x86' 体系结构,跳过配置文件 'main/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security InRelease' 不支持 'x86' 体系结构,跳过配置文件 'restricted/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security InRelease' 不支持 'x86' 体系结构,跳过配置文件 'universe/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security InRelease' 不支持 'x86' 体系结构,跳过配置文件 'multiverse/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'http://ppa.launchpad.net/diesch/testing/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'main/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'main/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'http://ppa.launchpad.net/webupd8team/su ... t-3/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'main/binary-x86/Packages' 的捕获。
N: 鉴于仓库 'http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial InRelease' 不支持 'x86' 体系结构,跳过配置文件 'main/binary-x86/Packages' 的捕获。
wuzsh5@wuzsh5-X555UJ:/etc/apt$


虽然对我的软件安装等操作没有影响,但每次更新源都会有这一串看着挺碍眼,不知道错在哪了???
我试过换软件源,但没解决问题 :Cry
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: 执行sudo apt-get update总会出现下面这一串

#2

帖子 funicorn » 2018-01-14 0:12

你的系统不需要这些源,统统去掉。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 执行sudo apt-get update总会出现下面这一串

#3

帖子 vickycq » 2018-01-14 0:24

你装的 32 位系统?怎么变成 'x86' 体系结构了,应该是 i386。你是不是配置成这样了:

代码: 全选

deb [arch=x86] https://mirrors.tuna.........
把 arch=x86 改成 arch=i386。

如果是 64 位系统需要 multiarch 32 位库,也不用显式配置 arch=i386,dpkg 添加 foreign arch 即可自动处理
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
小草帽boy
帖子: 16
注册时间: 2017-12-29 1:12
系统: linux

Re: 执行sudo apt-get update总会出现下面这一串

#4

帖子 小草帽boy » 2018-01-14 17:06

vickycq 写了:你装的 32 位系统?怎么变成 'x86' 体系结构了,应该是 i386。你是不是配置成这样了:

代码: 全选

deb [arch=x86] https://mirrors.tuna.........
把 arch=x86 改成 arch=i386。

如果是 64 位系统需要 multiarch 32 位库,也不用显式配置 arch=i386,dpkg 添加 foreign arch 即可自动处理


我在sources.list里面家了arch=i386,那些错误明显变少,然后又在软件与更新里把额外加进去的源都删了(之前用它们装软件),然后就没有这种错误了,但我怕我以后加入其他源的时候又会有这种问题。请问怎么用dpkg添加foreign arch???
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 执行sudo apt-get update总会出现下面这一串

#5

帖子 vickycq » 2018-01-14 23:28

如果你是 32 位系统,那么不需要 arch=i386
如果你是 64 位系统,个别软件(比如 wine)需要 32 位库,也不需要配置 arch=i386。只要用 dpkg --add-architecture i386; apt update 使用 multiarch 即可。这样需要 32 位软件包的时候她会自动安装

你主贴出现那个错误,我猜测第一种可能是你在 sources.list 里配置了 [arch=x86]。还有一种可能是你以前执行过 dpkg --add-architecture x86,导致 "x86" 被添加为 foreign architecture。这样每次 apt-get update 都会试图下载 "x86" 架构的文件,实际应该是 "i386"。

使用以下命令检查目前的 foreign architecture

代码: 全选

dpkg --print-foreign-architectures
使用以下命令移除不需要的 foreign architecture,将 XXXXXX 替换为上面命令显示的架构名称

代码: 全选

sudo dpkg --remove-architecture XXXXXX 
如果你用 add-apt-repository 添加 PPA 软件源,应该没问题。如果从其它地方复制软件源条目手动添加到 sources.list 中,要自己看清楚有么有错误,比如 deb [arch=x86] http://XXXXXXXX 这种
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复