我用命令sudo apt-get install apache2并得到下面的错误:
有什么build议么?
# sudo apt-get install apache2 The following NEW packages will be installed: apache2 apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. Need to get 1,285 kB of archives. After this operation, 5,348 kB of additional disk space will be used. Do you want to continue? [Y/n] y Err http://us-central1.gce.archive.ubuntu.com/ubuntu/ trusty-updates/main apache2-bin amd64 2.4.7-1ubuntu4.8 404 Not Found [IP: 91.189.91.14 80] Err http://us-central1.gce.archive.ubuntu.com/ubuntu/ trusty-updates/main apache2-data all 2.4.7-1ubuntu4.8 404 Not Found [IP: 91.189.91.14 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
阅读错误消息结尾处的build议。 您的源代码列表已过时。
在这里快速检查ubuntu包的网站,发现trusty-updates中apache2的当前版本号是2.4.7-1ubuntu4。 9
运行sudo apt-get update; sudo apt-get -uf upgrade sudo apt-get update; sudo apt-get -uf upgrade然后再次尝试命令。