![当我尝试在我的 deepin linux 中安装 apache2 时,我不断收到此错误](https://linux22.com/image/91055/%E5%BD%93%E6%88%91%E5%B0%9D%E8%AF%95%E5%9C%A8%E6%88%91%E7%9A%84%20deepin%20linux%20%E4%B8%AD%E5%AE%89%E8%A3%85%20apache2%20%E6%97%B6%EF%BC%8C%E6%88%91%E4%B8%8D%E6%96%AD%E6%94%B6%E5%88%B0%E6%AD%A4%E9%94%99%E8%AF%AF.png)
sudo apt-get install apache2 apache2-doc apache2-utils
我不断收到此错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0
Suggested packages:
apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-doc apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 108 kB/5,768 kB of archives.
After this operation, 29.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://packages.deepin.com/deepin unstable/main amd64 liblua5.2-0 amd64 5.2.4-1
404 Not Found [IP: 202.141.160.114 80]
E: Failed to fetch http://packages.deepin.com/deepin/pool/main/l/lua5.2/liblua5.2-0_5.2.4-1_amd64.deb 404 Not Found [IP: 202.141.160.114 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我应该怎么办?
答案1
您有一个过时的apt-get
索引。无法再找到依赖包之一。
你在,unstable
所以这种情况应该时常发生。检查该服务器上的文件显示apt-get install
尝试获取的文件的最新版本是liblua5.2-0_5.2.4-1.1_amd64.deb
(2016 年 6 月 3 日更新),而不是liblua5.2-0_5.2.4-1_amd64.deb
( 1
vs 1.1
)。
您需要更新索引:
$ apt-get update
从apt-get
手册:
update
update
用于从源重新同步包索引文件。可用包的索引是从 中指定的位置获取的/etc/apt/sources.list
。例如,当使用 Debian 存档时,此命令会检索并扫描文件Packages.gz
,以便获得有关新软件包和更新软件包的信息。 an应始终在 orupdate
之前执行。请注意,由于无法提前知道包文件的大小,因此整体进度表将不正确。upgrade
dist-upgrade