以下是apt-get update
出现 403 错误的行的输出:
W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/bit-trip-beat/ubuntu/dists/precise/main/binary-amd64/Packages The requested URL returned error: 403
W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/bit-trip-beat/ubuntu/dists/precise/main/binary-i386/Packages The requested URL returned error: 403
E: Some index files failed to download. They have been ignored, or old ones used instead.
以下是其中的内容cat /etc/apt/sources.list.d/*.list | grep ppa
:
deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/bit-trip-beat/ubuntu precise main #Added by software-center; credentials stored in /etc/apt/auth.conf
这是我的 auth.conf 的修订版本:
machine private-ppa.launchpad.net/commercial-ppa-uploaders/bit-trip-beat/ubuntu
login dlamblin
password 3..................6
这是一个哈希值,大概是通过我的 Ubuntu One 帐户购买 Android 3(以及 Windows/Mac/Linux)的 Humble Bundle 时使用的。
答案1
您需要检查您的 Launchpad 登录凭证apt.conf
(可能是哈希值)或使用以下方法:
https://user:[email protected]/commercial-ppa-uploaders/bit-trip-beat/ubuntu
登录。