我尝试创建我的第一个 PPA 包。添加存储库似乎可行。
$ sudo add-apt-repository ppa:unixinfo/openshell
[sudo] password for developer:
The OpenShell (opsh) command-line interface
More info: https://launchpad.net/~unixinfo/+archive/ubuntu/openshell
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpytohca83/secring.gpg' created
gpg: keyring `/tmp/tmpytohca83/pubring.gpg' created
gpg: requesting key 8B747352 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpytohca83/trustdb.gpg: trustdb created
gpg: key 8B747352: public key "Launchpad PPA for Niklas Larsson" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
但是当apt-get update
我从 repo 获得状态 404 后,我无法安装该包。我该怎么办?
E: Failed to fetch http://ppa.launchpad.net/unixinfo/openshell/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/unixinfo/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
答案1
虽然构建已成功,但它们仍处于等待发布状态,您可以在“状态”标题下看到https://launchpad.net/~unixinfo/+archive/ubuntu/openshell/+packages如下图所示:
我不确定它们需要多长时间才能发布,但肯定不是立即的。