麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 系統(tǒng) > Ubuntu > 正文

分享Ubuntu19無法安裝docker源問題

2024-07-26 00:27:32
字體:
供稿:網(wǎng)友

按照各大網(wǎng)站以及個人習(xí)慣我會使用下面這種方法添加Docker源:

root@ubuntu:~# sudo add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

然而使用上面這條命令給我?guī)砹藷o盡的煩惱,甚至我都懷疑我是不是一個合格的linux工程師了,使用了這條命令提示以下錯誤:

Ign:1 https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu eoan InReleaseErr:2 https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu eoan Release404 Not Found [IP: 218.104.71.170 443]Hit:3 http://cn.archive.ubuntu.com/ubuntu eoan InReleaseHit:4 http://cn.archive.ubuntu.com/ubuntu eoan-updates InReleaseHit:5 http://cn.archive.ubuntu.com/ubuntu eoan-backports InReleaseHit:6 http://cn.archive.ubuntu.com/ubuntu eoan-security InReleaseReading package lists... Done E: The repository 'https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu eoan 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.

下面是apt源文件中的內(nèi)容:

deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu eoan stabledeb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable 

發(fā)現(xiàn)是沒有任何錯誤的,但是你會發(fā)現(xiàn)在使用apt更新時會出現(xiàn)各種各樣報錯,最終還是沒有你想要的docker-ce安裝包,還是無法安裝:

root@uduntu:~# apt-get updateGet:1 http://cn.archive.ubuntu.com/ubuntu eoan InRelease [255 kB]Get:2 http://cn.archive.ubuntu.com/ubuntu eoan-updates InRelease [88.4 kB]Hit:3 http://cn.archive.ubuntu.com/ubuntu eoan-backports InReleaseGet:4 http://cn.archive.ubuntu.com/ubuntu eoan-security InRelease [92.9 kB]Ign:5 https://download.docker.com/linux/ubuntu eoan InRelease                            Err:6 https://download.docker.com/linux/ubuntu eoan Release                             404 Not Found [IP: 13.225.103.32 443]Reading package lists... Done                                    E: The repository 'https://download.docker.com/linux/ubuntu eoan 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.root@uduntu:~# apt search docker-ceroot@uduntu:~#

遇到這種問題我也覺得很頭疼,在網(wǎng)上找了很多解決方法都是不行,有人都說是網(wǎng)絡(luò)問題無法使用外網(wǎng)的源碼庫,我看到這個文章我都懵了,我還試過安裝網(wǎng)易、阿里以及科大的源都不能更好的解決問題,其實這個很簡單看一下阿里、科大和網(wǎng)易的他們的源碼庫是怎么往配置文件里面寫的,然后比葫蘆畫瓢畫一個不就完了

解決方法:

在sources.list添加下面這一條就可以:

deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable

更新apt源:

root@uduntu:~# apt-get updateGet:1 http://cn.archive.ubuntu.com/ubuntu eoan InRelease [255 kB]Get:2 http://cn.archive.ubuntu.com/ubuntu eoan-updates InRelease [88.4 kB]Hit:3 http://cn.archive.ubuntu.com/ubuntu eoan-backports InReleaseGet:4 http://cn.archive.ubuntu.com/ubuntu eoan-security InRelease [92.9 kB]Get:5 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB] Get:6 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages [9,594 B] Fetched 511 kB in 11s (48.3 kB/s) Reading package lists... Doneroot@uduntu:~#
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 欧美黄色一级片在线观看 | 久久精品国产一区二区电影 | 久久国产一级片 | 成人在线观看免费高清 | 免费观看黄色一级视频 | 久久在线精品视频 | 海角在线观看91一区二区 | 久久精品一区二区三区四区五区 | 黄网站进入 | 精品国产91久久久久久久 | 激情免费视频 | 欧美成年人在线视频 | 国产精品亚洲欧美一级在线 | 久久国产精品免费视频 | 禁漫天堂久久久久久久久久 | 国产亚洲精品成人 | 91成人一区二区三区 | av免费在线网站 | 被啪羞羞视频在线观看 | 日本精品久久久一区二区三区 | av电影在线观看网址 | 空姐毛片 | 在线观看精品视频 | 99亚洲 | 中文字幕欧美专区 | 黄色av免费网站 | 久久国产精品99国产 | 羞羞答答视频 | 午夜爽爽爽男女免费观看hd | 国产精彩视频在线 | 国产日韩在线 | 中国女警察一级毛片视频 | 亚洲骚综合 | 狠狠99| 一本在线高清码电影 | 国产成人高清成人av片在线看 | 黄色羞羞视频在线观看 | 欧美视频一区二区三区在线观看 | 免费观看一级欧美大 | 国产成人强伦免费视频网站 | 国产成人高清在线观看 |