我正在尝试按照手册(Juno 版)安装 openstack 仪表板,但安装失败,运行此 cli:
apt-get install openstack-dashboard apache2 libapache2-mod-wsgi memcached python-memcache
收到几个类似这样的错误:
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python-django/python-django_1.6.1-2ubuntu0.6_all.deb 404 Not Found [IP: 91.189.92.201 80]
我可以在端口 80 上 ping 和 telnet
ping 91.189.92.201
PING 91.189.92.201 (91.189.92.201) 56(84) bytes of data.
64 bytes from 91.189.92.201: icmp_seq=1 ttl=53 time=41.2 ms
64 bytes from 91.189.92.201: icmp_seq=2 ttl=53 time=41.4 ms
--- 91.189.92.201 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 41.221/41.324/41.427/0.103 ms
telnet 91.189.92.201 80
Trying 91.189.92.201...
Connected to 91.189.92.201.
Escape character is '^]'.
我可以在端口 80 上 ping 和 telnet
$ ping 91.189.92.201
PING 91.189.92.201 (91.189.92.201) 56(84) bytes of data.
64 bytes from 91.189.92.201: icmp_seq=1 ttl=53 time=41.2 ms
64 bytes from 91.189.92.201: icmp_seq=2 ttl=53 time=41.4 ms
--- 91.189.92.201 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 41.221/41.324/41.427/0.103 ms
# telnet 91.189.92.201 80
Trying 91.189.92.201...
Connected to 91.189.92.201.
Escape character is '^]'.
答案1
输出中 python-django 的版本稍旧,表明您可能需要刷新软件包列表。为确保您的打包系统始终使用最新信息,建议在安装软件包之前执行此操作:
sudo apt-get update -y