首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从apt-get更新中删除Docker PPA

从apt-get更新中删除Docker PPA
EN

Unix & Linux用户
提问于 2021-02-28 03:35:27
回答 2查看 2.7K关注 0票数 0

当我运行apt-get update时,会得到一个错误和一个忽略:

代码语言:javascript
复制
Ign:14 https://download.docker.com/linux/ubuntu hera InRelease                         
Hit:15 https://download.docker.com/linux/ubuntu bionic InRelease                       
Hit:16 http://ppa.launchpad.net/elementary-os/stable/ubuntu bionic InRelease           
Err:17 https://download.docker.com/linux/ubuntu hera Release                           
  404  Not Found [IP: 13.226.234.100 443]

我希望能够从我的列表中删除1417。但是,当我运行ls /etc/apt/sources.list.d时,我只看到以下内容:

代码语言:javascript
复制
appcenter.list                              mc3man-ubuntu-mpv-tests-bionic.list.save
appcenter.list.save                         openvpn-aptrepo.list
deadsnakes-ubuntu-ppa-bionic.list           openvpn-aptrepo.list.save
deadsnakes-ubuntu-ppa-bionic.list.save      patches.list
elementary.list                             patches.list.save
elementary.list.save                        rednotebook-ubuntu-stable-bionic.list
fcitx-team-ubuntu-nightly-bionic.list       rednotebook-ubuntu-stable-bionic.list.save
fcitx-team-ubuntu-nightly-bionic.list.save  slack.list
google-chrome.list                          slack.list.save
google-chrome.list.save                     spotify.list
mc3man-ubuntu-mpv-tests-bionic.list         spotify.list.save

我怎样才能移除这两项?

EN

回答 2

Unix & Linux用户

发布于 2021-02-28 10:33:23

您可以使用add-apt-repository

代码语言:javascript
复制
sudo add-apt-repository --remove 'deb [arch=amd64] https://download.docker.com/linux/ubuntu hera stable'

sudo add-apt-repository --remove 'deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable'
票数 2
EN

Unix & Linux用户

发布于 2021-02-28 03:43:55

我找到了存储在sources.listsources.list.save中的存储库。要删除它们,我首先运行cd /etc/apt; grep -rI download.docker来查找存储库所在的文件,然后运行:

代码语言:javascript
复制
sudo nano /etc/apt/sources.list
sudo nano /etc/apt/sources.list.save

并删除了相应的行。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/636788

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档