中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

docker容器無法執行vim如何解決

發布時間:2023-06-19 10:03:32 來源:億速云 閱讀:186 作者:栢白 欄目:開發技術

本篇文章和大家了解一下docker容器無法執行vim如何解決。有一定的參考價值,有需要的朋友可以參考一下,希望對大家有所幫助。

目錄
  • docker容器無法執行vim【已解決】

  • docker容器中執行vim失敗

  • 安裝文件

    • 沒更換之前,速度非常的慢

    • 【失敗】這里我更換了163的但是報錯

    • 【失敗】這里我更換了阿里的第一種報錯

    • 【成功】::::這里我更換了阿里的第二種成功

  • 完整步驟

    • 1:備份配置

    • 2:修改配置

    • 3:檢查配置

    • 4:執行:apt-get update

    • 5:執行:apt-get install -y vim

    • 6:驗證

  • 參考資料:

    docker容器無法執行vim【已解決】

    解決問題直接看完整步驟目錄

    docker容器中執行vim失敗

    bash: ll: command not found
    bash: vim: command not found
    bash: vi: command not found
    安裝vim依舊報錯

    docker容器無法執行vim如何解決

    我的版本 cat /etc/debian_version
    11.2

    安裝文件

    # 正常步驟,但是第一步下載非常慢,需要更換一下地址
    1:apt-get update
    2: apt-get install -y vim

    沒更換之前,速度非常的慢

    docker容器無法執行vim如何解決

    【失敗】這里我更換了163的但是報錯

    Ign:1 http://mirrors.163.com/debian jessie InRelease
    Ign:2 http://mirrors.163.com/debian jessie-proposed-updates InRelease
    Ign:3 http://mirrors.163.com/debian jessie-updates InRelease
    Ign:4 http://mirrors.163.com/debian jessie-backports InRelease
    Ign:5 http://mirrors.163.com/debian-security jessie/updates InRelease
    Get:6 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease [116 kB]
    Err:7 http://mirrors.163.com/debian jessie Release
    404 Not Found [IP: 101.71.33.11 80]
    Err:8 http://mirrors.163.com/debian jessie-proposed-updates Release
    404 Not Found [IP: 101.71.33.11 80]
    Err:9 http://mirrors.163.com/debian jessie-updates Release
    404 Not Found [IP: 101.71.33.11 80]
    Err:10 http://mirrors.163.com/debian jessie-backports Release
    404 Not Found [IP: 101.71.33.11 80]
    Err:11 http://mirrors.163.com/debian-security jessie/updates Release
    404 Not Found [IP: 101.71.33.11 80]
    Reading package lists... Done
    E: The repository 'http://mirrors.163.com/debian jessie 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.
    E: The repository 'http://mirrors.163.com/debian jessie-proposed-updates 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.
    E: The repository 'http://mirrors.163.com/debian jessie-updates 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.
    E: The repository 'http://mirrors.163.com/debian jessie-backports 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.
    E: The repository 'http://mirrors.163.com/debian-security jessie/updates 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.

    docker容器無法執行vim如何解決

    【失敗】這里我更換了阿里的第一種報錯

    root@a7e7ebb2ecad:/var/lib/apt/lists# echo -e "deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib \ndeb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib \ndeb http://mirrors.aliyun.com/debian-security stretch/updates main \ndeb-src http://mirrors.aliyun.com/debian-security stretch/updates main \ndeb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib \ndeb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib \ndeb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib \ndeb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib" > /etc/apt/sources.list
    root@a7e7ebb2ecad:/var/lib/apt/lists#
    root@a7e7ebb2ecad:/var/lib/apt/lists# cat /etc/apt/sources.list
    deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
    deb http://mirrors.aliyun.com/debian-security stretch/updates main
    deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
    deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
    deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
    root@a7e7ebb2ecad:/var/lib/apt/lists# apt-get update
    Ign:1 http://mirrors.aliyun.com/debian stretch InRelease
    Ign:2 http://mirrors.aliyun.com/debian-security stretch/updates InRelease
    Ign:3 http://mirrors.aliyun.com/debian stretch-updates InRelease
    Ign:4 http://mirrors.aliyun.com/debian stretch-backports InRelease
    Get:5 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease [116 kB]
    Err:6 http://mirrors.aliyun.com/debian stretch Release
    404 Not Found [IP: 60.28.226.53 80]
    Err:7 http://mirrors.aliyun.com/debian-security stretch/updates Release
    404 Not Found [IP: 60.28.226.53 80]
    Err:8 http://mirrors.aliyun.com/debian stretch-updates Release
    404 Not Found [IP: 60.28.226.53 80]
    Err:9 http://mirrors.aliyun.com/debian stretch-backports Release
    404 Not Found [IP: 60.28.226.53 80]
    Reading package lists... Done
    E: The repository 'http://mirrors.aliyun.com/debian stretch 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.
    E: The repository 'http://mirrors.aliyun.com/debian-security stretch/updates 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.
    E: The repository 'http://mirrors.aliyun.com/debian stretch-updates 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.
    E: The repository 'http://mirrors.aliyun.com/debian stretch-backports 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.

    docker容器無法執行vim如何解決

    【成功】::::這里我更換了阿里的第二種成功

    #Aliyun Apt Source 阿里云鏡像源
    echo "deb http://mirrors.aliyun.com/debian/ bullseye main contrib" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian/ bullseye main contrib" >> /etc/apt/sources.list
    echo "deb http://mirrors.aliyun.com/debian/ bullseye-updates main contrib" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main contrib" >> /etc/apt/sources.list
    echo "deb http://mirrors.aliyun.com/debian/ bullseye-backports main contrib" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main contrib" >> /etc/apt/sources.list
    echo "deb http://mirrors.aliyun.com/debian/ bullseye-proposed-updates main contrib" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian/ bullseye-proposed-updates main contrib" >> /etc/apt/sources.list
    root@a7e7ebb2ecad:/# apt-get update
    Get:1 http://mirrors.aliyun.com/debian bullseye InRelease [116 kB]
    Get:2 http://mirrors.aliyun.com/debian bullseye-updates InRelease [44.1 kB]           
    Get:3 http://mirrors.aliyun.com/debian bullseye-backports InRelease [49.0 kB]
    Get:4 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease [116 kB]
    Get:5 http://mirrors.aliyun.com/debian bullseye-proposed-updates InRelease [54.0 kB]
    Get:6 http://mirrors.aliyun.com/debian bullseye/contrib Sources [43.2 kB]
    Get:7 http://mirrors.aliyun.com/debian bullseye/main Sources [8,637 kB]        
    Get:8 http://mirrors.aliyun.com/debian bullseye/main amd64 Packages [8,183 kB]
    Get:9 http://mirrors.aliyun.com/debian bullseye/contrib amd64 Packages [50.6 kB]
    Get:10 http://mirrors.aliyun.com/debian bullseye-updates/main Sources [4,812 B]
    Get:11 http://mirrors.aliyun.com/debian bullseye-updates/main amd64 Packages [14.6 kB]
    Get:12 http://mirrors.aliyun.com/debian bullseye-backports/main Sources [429 kB]
    Get:13 http://mirrors.aliyun.com/debian bullseye-backports/contrib Sources [4,280 B]
    Get:14 http://mirrors.aliyun.com/debian bullseye-backports/main amd64 Packages [419 kB]
    Get:15 http://mirrors.aliyun.com/debian bullseye-backports/contrib amd64 Packages [5,692 B]
    Get:16 http://mirrors.aliyun.com/debian bullseye-proposed-updates/main Sources [8,072 B]
    Get:17 http://mirrors.aliyun.com/debian bullseye-proposed-updates/main amd64 Packages [29.3 kB]
    Fetched 18.2 MB in 6s (2,999 kB/s)                                                                                                                                                              
    Reading package lists... Done

    docker容器無法執行vim如何解決

    完整步驟

    1:備份配置

    cp /etc/apt/sources.list /etc/apt/sources.list.bak

    2:修改配置

    # Aliyun Apt Source 阿里云鏡像源
    echo "deb http://mirrors.aliyun.com/debian/ bullseye main contrib" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian/ bullseye main contrib" >> /etc/apt/sources.list
    echo "deb http://mirrors.aliyun.com/debian/ bullseye-updates main contrib" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main contrib" >> /etc/apt/sources.list
    echo "deb http://mirrors.aliyun.com/debian/ bullseye-backports main contrib" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main contrib" >> /etc/apt/sources.list
    echo "deb http://mirrors.aliyun.com/debian/ bullseye-proposed-updates main contrib" >> /etc/apt/sources.list
    echo "deb-src http://mirrors.aliyun.com/debian/ bullseye-proposed-updates main contrib" >> /etc/apt/sources.list

    3:檢查配置

    cat /etc/apt/sources.list

    docker容器無法執行vim如何解決

    4:執行:apt-get update

    docker容器無法執行vim如何解決

    5:執行:apt-get install -y vim

    6:驗證

    vim /etc/hosts

    docker容器無法執行vim如何解決

    以上就是docker容器無法執行vim如何解決的簡略介紹,當然詳細使用上面的不同還得要大家自己使用過才領會。如果想了解更多,歡迎關注億速云行業資訊頻道哦!

    向AI問一下細節

    免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

    AI

    连城县| 武义县| 全州县| 镇巴县| 鄂托克旗| 安远县| 宣城市| 阿拉善右旗| 沁阳市| 伊通| 于都县| 额敏县| 济阳县| 鲁甸县| 介休市| 高青县| 贵港市| 华阴市| 革吉县| 滦南县| 九台市| 东阳市| 喀喇| 宜兰市| 且末县| 民丰县| 宝兴县| 黔江区| 德安县| 朔州市| 墨玉县| 栖霞市| 邢台县| 布拖县| 松滋市| 东光县| 双柏县| 抚远县| 平凉市| 阿荣旗| 如东县|