AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1189679
Accepted
soldier
soldier
Asked: 2019-11-18 21:19:44 +0800 CST2019-11-18 21:19:44 +0800 CST 2019-11-18 21:19:44 +0800 CST

apt update docker.com Release 404 未找到

  • 772

我最近尝试使用这种方法安装 docker

curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh

但它对我不起作用,可能是损坏的包或其他东西,之后我使用 apt 方法安装了 docker && docker compose,效果很好,但是当我尝试更新或升级我的系统时,我可以看到以下消息,我实际上并不知道是什么是问题吗,请给我一个解决方案,谢谢。

$ sudo apt-get update

Hit:1 http://ppa.launchpad.net/daniruiz/flat-remix/ubuntu bionic InRelease
Hit:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                                    
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease                                  
Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease                                       
Hit:5 http://dl.google.com/linux/chrome/deb stable Release                                         
Hit:6 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease                                  
Hit:7 http://lk.archive.ubuntu.com/ubuntu bionic InRelease                                         
Ign:9 https://download.docker.com/linux/debian bionic InRelease                                    
Hit:10 http://lk.archive.ubuntu.com/ubuntu bionic-updates InRelease                                
Err:11 https://download.docker.com/linux/debian bionic Release                                     
  404  Not Found [IP: 13.35.8.98 443]
Hit:13 http://lk.archive.ubuntu.com/ubuntu bionic-backports InRelease                              
Hit:12 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Reading package lists... Done                                
E: The repository 'https://download.docker.com/linux/debian bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


$ sudo apt-get upgrade

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libxml2 libxml2:i386
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

我怎样才能从我的源列表中删除,因为我不再需要它了

updates upgrade apt 18.04
  • 3 3 个回答
  • 29137 Views

3 个回答

  • Voted
  1. Best Answer
    mchid
    2019-11-18T22:56:32+08:002019-11-18T22:56:32+08:00

    根据Ubuntu 的 docker 页面,问题在于它应该https://download.docker.com/linux/ubuntu代替https://download.docker.com/linux/debian.

    运行以下命令来解决此问题:

    sudo sed -i 's/debian/ubuntu/g' /etc/apt/sources.list.d/docker.list
    sudo apt update
    

    但是,如果这不能解决问题,请运行以下命令:

    sudo sed -i 's|docker.com/linux/debian|docker.com/linux/ubuntu|g' /etc/apt/sources.list
    sudo apt update
    
    • 24
  2. AP22
    2022-03-23T15:23:20+08:002022-03-23T15:23:20+08:00

    我在 Linux Mint 中使用了以下内容:

    1. 使用以下命令确定 Ubuntu 代号(而不是版本代号):

      $ cat /etc/os-release | grep -i codename
      VERSION_CODENAME=una
      UBUNTU_CODENAME=focal
      
    2. 将 Ubuntu 代号替换为/etc/apt/sources.list.d/docker.list:

      https://download.docker.com/linux/ubuntu <CODENAME> stable
      

      就我而言,docker网站上的命令已将代号设置为una(docker 使用 确定它lsb_release -cs),但我不得不将其更改为focus。

    • 4
  3. yahuza mushe abdul hakim
    2022-06-12T17:46:32+08:002022-06-12T17:46:32+08:00

    如果您使用 Parrot 操作系统,您必须将/etc/apt/sources.list.d/docker.list中的parrtos 更改为您的操作系统版本(bullseye、buster 等)的当前 debian 版本。

    sudo nano /etc/apt/sources.list.d/docker.list
    

    上面的命令将打开 docker.list 文件,您可以在其中将链接更改为现在如下所示:

    deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bullseye stable
    

    只需将靶心替换为您的 debian 代号,然后再次运行 sudo apt-get update。

    • 0

相关问题

  • 从 8.04 LTS 升级到 10.04 LTS 的体验?

  • 分销升级的合理途径

  • 如何让 Ubuntu 减少检查更新的频率?对于 11.04 及更高版本对于赶时间的人!通过 Ubuntu 软件中心

  • 如何启用自动更新?

  • 在不使用标准升级系统的情况下升级有哪些替代方案?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve