Docker에vim가 없는 경우 apt-get 원본 업데이트

1665 단어 docker
배경.
docker 렌즈에vim가 기본적으로 없습니다. apt-get 원본을 어떻게 업데이트하는지 기록해 두십시오.
메서드
1. 다음 명령을 실행한다.
root@57217e5cd268:/# echo "">sources.list
root@57217e5cd268:/# echo "deb http://mirrors.163.com/ubuntu/ artful main restricted universe multiverse">>sources.list
root@57217e5cd268:/# echo "deb http://mirrors.163.com/ubuntu/ artful-security main restricted universe multiverse">>sources.list
root@57217e5cd268:/# echo "deb http://mirrors.163.com/ubuntu/ artful-updates main restricted universe multiverse">>sources.list
root@57217e5cd268:/# echo "deb http://mirrors.163.com/ubuntu/ artful-proposed main restricted universe multiverse">>sources.list
root@57217e5cd268:/# echo "deb http://mirrors.163.com/ubuntu/ artful-backports main restricted universe multiverse">>sources.list
root@57217e5cd268:/# echo "deb-src http://mirrors.163.com/ubuntu/ artful main restricted universe multiverse">>sources.list
root@57217e5cd268:/# echo "deb-src http://mirrors.163.com/ubuntu/ artful-security main restricted universe multiverse">>sources.list
root@57217e5cd268:/# echo "deb-src http://mirrors.163.com/ubuntu/ artful-updates main restricted universe multiverse">>sources.list
root@57217e5cd268:/# echo "deb-src http://mirrors.163.com/ubuntu/ artful-proposed main restricted universe multiverse">>sources.list
root@57217e5cd268:/# echo "deb-src http://mirrors.163.com/ubuntu/ artful-backports main restricted universe multiverse">>sources.list

2. 그리고 실행
apt-get update

좋은 웹페이지 즐겨찾기