我收到以下错误。软件存储库设置正确,所以我不确定发生了什么,因为它是 12.04 LTS,这些不应该有效吗?
sudo apt-get install postgresql-common=129
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
postgresql-client-common
The following NEW packages will be installed:
postgresql-client-common postgresql-common
0 to upgrade, 2 to newly install, 0 to remove and 0 not to upgrade.
Need to get 25.1 kB/121 kB of archives.
After this operation, 596 kB of additional disk space will be used.
Do you want to continue [Y/n]?
WARNING: The following packages cannot be authenticated!
postgresql-common
Install these packages without verification [y/N]? y
Err http://lips.csiro.au/ubuntu/ precise-updates/main postgresql-client-common all 129ubuntu1 404 Not Found
Failed to fetch http://lips.csiro.au/ubuntu/pool/main/p/postgresql-common/postgresql-client-common_129ubuntu1_all.deb 404 Not Found
答案1
正如您的错误信息所示
Failed to fetch http://lips.csiro.au/ubuntu/pool/main/p/postgresql-common/postgresql-client-common_129ubuntu1_all.deb 404 Not Found
该主机不可访问、无法 ping 通且无法追踪。
因此使用另一个 PPA,例如
deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main
答案2
现在一切都正常了,不知道为什么昨天那个特定的包不见了,但现在有了。我知道东西可能会过期,有时你必须添加不同的存储库,但我只是对 LTS 默认版本有问题感到困惑。无论如何,现在一切都正常了