我正在嘗試根據手冊(版本 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