1、在docker环境下: docker
1.报错:Server error: 404 trying to fetch remote history for ubuntu shell
docker pull ubuntu
解决办法: ubuntu
sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
2、在container环境中: socket
1.报错: fetch
stop: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused spa
解决办法: code
dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl
server
2.报错: rem
W: GPG error: http://debian.ustc.edu.cn quantal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 get
解决办法:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5