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

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

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?

运行命令

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

在上述命令中添加-y对所有提示都假定为yes,因此它不会要求您Press [ENTER] to continue or ctrl-c to cancel adding it