当我运行apt-get update时,会得到一个错误和一个忽略:
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]我希望能够从我的列表中删除14和17。但是,当我运行ls /etc/apt/sources.list.d时,我只看到以下内容:
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我怎样才能移除这两项?
发布于 2021-02-28 10:33:23
您可以使用add-apt-repository:
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'发布于 2021-02-28 03:43:55
我找到了存储在sources.list和sources.list.save中的存储库。要删除它们,我首先运行cd /etc/apt; grep -rI download.docker来查找存储库所在的文件,然后运行:
sudo nano /etc/apt/sources.list
sudo nano /etc/apt/sources.list.save并删除了相应的行。
https://unix.stackexchange.com/questions/636788
复制相似问题