![命令“apt-get-repository”在 Ubuntu 12.04 上不起作用](https://linux22.com/image/834772/%E5%91%BD%E4%BB%A4%E2%80%9Capt-get-repository%E2%80%9D%E5%9C%A8%20Ubuntu%2012.04%20%E4%B8%8A%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
我正在尝试在 Ubuntu 12.04 上安装 Libreoffice 4.0。我尝试首先添加存储库。
sudo add-apt-repository ppa:libreoffice/libreoffice-4-0
我得到这个输出:
sudo: apt-get-repository: command not found
已测试运行
sudo apt-get install software-properties-common python-software-properties
输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-software-properties is already the newest version.
software-properties-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
答案1
正如评论中所回答的:我发现那里存在一些不一致之处:add-apt-repository 与 apt-get-repository,这是拼写错误还是你真的遇到了其他错误? – guntbert 3 小时前 尝试 sudo add-apt-repository ppa:libreoffice/ppa – Mitch 3 小时前
将其添加为答案,这样就可以将其勾选为正确答案,关闭此答案。
(由于我与此关系不大,因此将此答案添加为社区业力;))