[Tips] Ubuntu 更新第三方包 配置

有的时候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
    因为apt是支持交互操作的,而apt-get不支持,这样就可以在更新的过程中手动统一第三方连接的更新。

  • 第二:

sudo apt-get --allow-releaseinfo-change update
原文地址:https://www.cnblogs.com/immortalBlog/p/13423955.html