添加存储库时可以跳过确认步骤吗?

添加存储库时可以跳过确认步骤吗?

当我通过运行添加存储库时

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

它输出以下对话框:

Updated versions of X.org drivers, libraries, etc. for Ubuntu.

This PPA is for stable upstream releases of X.org components.  If you're looking for something even more bleeding-edge, please see the xorg-edgers PPA.

While Ubuntu does not "officially/formally" support these packages, if you discover problems when installing these debs please feel free to report bugs to launchpad.  However, please make sure to clearly state that you are running packages from this PPA so we know the fixes need to come here.

If you are upgrading from one release to another with this PPA activated, please install the ppa-purge package and use it to downgrade everything in here beforehand. sudo ppa-purge ppa:ubuntu-x-swat/x-updates will do it.

[Directions for packaging drivers can be seen at https://wiki.ubuntu.com/X/DriverBuilding]
 More info: https://launchpad.net/~ubuntu-x-swat/+archive/x-updates
Press [ENTER] to continue or ctrl-c to cancel adding it

我想跳过确认步骤 Press [ENTER] to continue or ctrl-c to cancel adding it

如何自动确认添加 PPA?

答案1

运行命令

sudo add-apt-repository -y ppa:ubuntu-x-swat/x-updates

添加-y上述命令假定所有提示的答案都是肯定的,所以它不会要求您Press [ENTER] to continue or ctrl-c to cancel adding it

相关内容