明确接受PPA“标签”的更改
当我在我的ubuntu 17.10上运行apt-get update
,收到以下错误:
E: Repository 'http://ppa.launchpad.net/ondrej/php/ubuntu artful InRelease' changed its 'Label' value from '***** The main PPA for PHP (5.6, 7.0, 7.1) with many PECL extensions *****' to '***** The main PPA for supported PHP versions with many PECL extensions *****' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details."
手册页并没有真正指向解决方案。 我的问题是,我如何明确接受这一变化?
如果你发布了你的存储库会有所帮助,但是,据说,你有两种解决方法。
首先是使用apt
而不是apt-get
。 在最近的Ubuntu版本中, apt
比apt-get
适合交互使用; 从理论上讲,应该适合你。
sudo apt update sudo apt upgrade
您的第二个选择是使用--allow-releaseinfo-change
sudo apt-get --allow-releaseinfo-change update
如果这些选项无法解决问题,请发布您的存储库,您使用的是混合存储库还是钉扎,最后告诉我们,这是升级吗?
你需要使用apt
而不是apt-get
。 它会要求您以交互方式接受更改。 只需运行:
sudo apt update
它应该问你:
Do you want to accept these changes and continue updating from this repository? [y/N]