欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

分享Ubuntu19無法安裝docker源問題

 更新時(shí)間:2019年11月01日 09:34:11   作者:避涼閑庭  
這篇文章主要介紹了Ubuntu19無法安裝docker源問題,本文通過實(shí)例代碼給大家講解的非常詳細(xì),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下

按照各大網(wǎng)站以及個(gè)人習(xí)慣我會(huì)使用下面這種方法添加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盡的煩惱,甚至我都懷疑我是不是一個(gè)合格的linux工程師了,使用了這條命令提示以下錯(cuò)誤:

Ign:1 https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu eoan InRelease

Err:2 https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu eoan Release
404 Not Found [IP: 218.104.71.170 443]
Hit:3 http://cn.archive.ubuntu.com/ubuntu eoan InRelease
Hit:4 http://cn.archive.ubuntu.com/ubuntu eoan-updates InRelease
Hit:5 http://cn.archive.ubuntu.com/ubuntu eoan-backports InRelease
Hit:6 http://cn.archive.ubuntu.com/ubuntu eoan-security InRelease
Reading 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 stable
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable 

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

root@uduntu:~# apt-get update
Get: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 InRelease
Get: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-ce
root@uduntu:~#

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

解決方法:

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

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

更新apt源:

root@uduntu:~# apt-get update
Get: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 InRelease
Get: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... Done
root@uduntu:~#

這樣就好了,不報(bào)錯(cuò)了,再看看docker-ce這個(gè)安裝包有沒有:

root@uduntu:~# apt search docker-ce
Sorting... Done
Full Text Search... Done
docker-ce/bionic,now 5:19.03.4~3-0~ubuntu-bionic amd64 [installed]
 Docker: the open-source application container engine

docker-ce-cli/bionic,now 5:19.03.4~3-0~ubuntu-bionic amd64 [installed,automatic]
 Docker CLI: the open-source application container engine

root@uduntu:~

總結(jié)

以上所述是小編給大家介紹的分享Ubuntu19無法安裝docker源問題,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
如果你覺得本文對(duì)你有幫助,歡迎轉(zhuǎn)載,煩請(qǐng)注明出處,謝謝!

相關(guān)文章

  • 詳解如何使用Docker打包Python項(xiàng)目

    詳解如何使用Docker打包Python項(xiàng)目

    Docker是一種開源的容器化平臺(tái),可以將應(yīng)用程序及其依賴項(xiàng)打包到一個(gè)輕量級(jí)、可移植的容器中,通過使用Docker,可以簡(jiǎn)化Python項(xiàng)目的部署和運(yùn)行,提高開發(fā)效率和應(yīng)用程序的可移植性,本文將介紹如何使用Docker來打包Python項(xiàng)目,需要的朋友可以參考下
    2023-11-11
  • Docker部署Microsoft Sql Server詳細(xì)步驟

    Docker部署Microsoft Sql Server詳細(xì)步驟

    大家好,本篇文章主要講的是Docker部署Microsoft Sql Server詳細(xì)步驟,感興趣的同學(xué)趕快來看一看吧,對(duì)你有幫助的話記得收藏一下,方便下次瀏覽
    2021-12-12
  • Docker Cloud實(shí)現(xiàn)部署應(yīng)用操作詳解

    Docker Cloud實(shí)現(xiàn)部署應(yīng)用操作詳解

    這篇文章主要介紹了Docker Cloud實(shí)現(xiàn)部署應(yīng)用操作,較為詳細(xì)的分析了Docker Cloud部署應(yīng)用的步驟、命令、實(shí)現(xiàn)方法及相關(guān)操作注意事項(xiàng),需要的朋友可以參考下
    2018-06-06
  • 修改docker容器端口映射到主機(jī)的方法實(shí)現(xiàn)

    修改docker容器端口映射到主機(jī)的方法實(shí)現(xiàn)

    Docker容器的端口映射是通過docker run命令來啟動(dòng)容器,并指定端口映射參數(shù),本文主要介紹了修改docker容器端口映射到主機(jī)的方法實(shí)現(xiàn),具有一定的參考價(jià)值,感興趣的可以了解一下
    2023-09-09
  • Docker部署Python應(yīng)用的方法實(shí)現(xiàn)

    Docker部署Python應(yīng)用的方法實(shí)現(xiàn)

    在云服務(wù)使用越來越普及的趨勢(shì)下,很多應(yīng)用在考慮成本和、可部署性、維護(hù)性方面,選擇docker方案部署是一個(gè)不錯(cuò)的選擇,本文主要介紹了Docker部署Python應(yīng)用的方法實(shí)現(xiàn),需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2023-06-06
  • docker容器非root用戶提權(quán)的問題解決

    docker容器非root用戶提權(quán)的問題解決

    本文主要介紹了docker容器非root用戶提權(quán)的問題解決,文中通過示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2022-04-04
  • Docker容器通過獨(dú)立IP暴露給局域網(wǎng)的方法

    Docker容器通過獨(dú)立IP暴露給局域網(wǎng)的方法

    這篇文章主要介紹了Docker容器通過獨(dú)立IP暴露給局域網(wǎng)的方法,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下
    2017-04-04
  • 使用elasticsearch定時(shí)刪除索引數(shù)據(jù)

    使用elasticsearch定時(shí)刪除索引數(shù)據(jù)

    這篇文章主要介紹了使用elasticsearch定時(shí)刪除索引數(shù)據(jù)的操作,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過來看看吧
    2021-03-03
  • Docker使用Portainer搭建可視化界面的方法

    Docker使用Portainer搭建可視化界面的方法

    這篇文章主要介紹了Docker使用Portainer搭建可視化界面,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2020-11-11
  • docker使用阿里云鏡像倉庫的方法

    docker使用阿里云鏡像倉庫的方法

    本篇文章主要介紹了docker使用阿里云鏡像倉庫的方法,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2017-12-12

最新評(píng)論