我想把这四个ppa加到我的机器上。
sudo add-apt-repository ppa:noobslab/malys-themes
sudo add-apt-repository ppa:alecive/antigone
sudo add-apt-repository ppa:nitrux/nitrux-artwork
sudo add-apt-repository ppa:upubuntu-com/themes与其一次一次地添加它们,我想我应该一个接一个地列出它们--就像我们在安装应用程序时那样。
sudo add-apt-repository ppa:noobslab/malys-themes ppa:alecive/antigone ppa:nitrux/nitrux-artwork ppa:upubuntu-com/themes但是它返回了一个错误:Error: need a repository as argument
我四处搜索,看到了这个问题如何同时安装多个PPA和应用程序?,但它提出了一个bash脚本作为解决方案。
有没有一种不使用脚本同时添加多个ppa的方法?
编辑
我只是好奇,为什么不
sudo add-apt-repository ppa:noobslab/malys-themes ppa:alecive/antigone ppa:nitrux/nitrux-artwork ppa:upubuntu-com/themes工作,但
sudo apt-get install moka-icon-theme moka-icon-theme-blue moka-icon-theme-dark malys-deda awoken-icon-theme nitrux-icon-theme nouvegnomegray有用吗?
编辑2
有没有什么解决办法
sudo add-apt-repository ppa:noobslab/malys-themes ppa:alecive/antigone ppa:nitrux/nitrux-artwork ppa:upubuntu-com/themes能让你工作吗?
我完全理解这里的风险。
发布于 2014-03-07 17:49:12
在讨论如何备份已安装的PPA时,我已经讨论过这个问题了。下面是一个文件,其中列出了所有PPA并安装它们:
<~/ppa-backup.txt xargs -I % sudo add-apt-repository %对其进行调优以获得一个列表是相当微不足道的:
xargs -I % sudo add-apt-repository % <<EOF
ppa:noobslab/malys-themes
ppa:alecive/antigone
ppa:nitrux/nitrux-artwork
ppa:upubuntu-com/themes
EOF为什么
apt-get install ...接受多个参数而add-apt-repository不接受?
仅仅是因为它们是不同的命令,由不同的人为不同的目的而写。为什么less和rm不采用相同的论点呢?它们是不同的东西。
添加一组repos实际上是一种边缘情况。这不像一次安装多个软件包。它还使语法复杂化。apt存储库已经采用了几种不同的格式,有些还包括空格。正确地解析这一点是很困难的。
有什么办法可以让你的线路正常工作吗?
好的。您可以为add-apt-repository编写一个包装器并对其排序,或者编辑原始的.这是一件明智的事吗?没关系,您请。您将以一种非标准的方式破坏现有的add-apt-repository (参见上文),原因是什么?在你运行一次的东西上保存击键吗?
就像多个人告诉你的那样,有多种单一的命令方法来解决这个问题。不要反抗系统,用它。
发布于 2014-02-28 14:04:31
试着放点这样的东西:
sudo add-apt-repository ppa:noobslab/malys-themes && sudo add-apt-repository ppa:alecive/antigone && ...或
sudo add-apt-repository ppa:noobslab/malys-themes; sudo add-apt-repository ppa:alecive/antigone; ...如果ppa是可信的,并且需要以任何方式安装,那么也可以添加-y来强制安装。
sudo add-apt-repository ppa:noobslab/malys-themes -y; sudo add-apt-repository ppa:alecive/antigone -y; ...因此,在这种格式中:
command && next_command && next_command或
command; next_command; next_command也许能行。
https://askubuntu.com/questions/427524
复制相似问题