ubuntu报错:W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /e...

在更新ubuntu时,出现这个错误:

Hit:1 http://mirrors.aliyun.com/ubuntu bionic InRelease                        
Hit:2 https://download.docker.com/linux/ubuntu bionic InRelease                
Hit:3 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease            
Hit:4 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease              
Hit:5 http://mirrors.aliyun.com/ubuntu bionic-security InRelease               
Hit:6 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease               
Reading package lists... Done
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:54
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:54
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:54
W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:54
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:54
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:54

根据错误提示,是在
/etc/apt/sources.list的第5行

/etc/apt/sources.list的第54行
重复。删掉一个就好了。


apt-get更新错误
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 转摘 Ubuntu PPA 使用指南 一篇涵盖了在 Ubuntu 和其他 Linux 发行版中使用 PPA 的几乎...
    王贼臣阅读 526评论 0 0
  • feisky云计算、虚拟化与Linux技术笔记posts - 1014, comments - 298, trac...
    不排版阅读 3,912评论 0 5
  • Ubuntu PPA 使用指南 什么是 PPA?为什么要使用 PPA? PPA 表示 个人软件包存档(Person...
    qwl晴天心情好阅读 628评论 0 0
  • 安装完系统后,常规必备的操作: 修复引导sudo add-apt-repository ppa:yannubunt...
    yyccbbz阅读 2,102评论 0 6
  • 今天弟弟回来,上街买菜,我选一样儿子否一样,得!交权让位!“你选吧!” 他选了几样,然后我就盯上了摊位上的一条鱼,...
    如伊老师阅读 1,849评论 35 71