Ubuntu
python-software-properties的安裝問題
我需要安裝最新版本的 node.js,但我的系統在儲存庫中有舊版本。我需要添加新的 ppa 源。我跟著這個教程
問題- 當我安裝“python-software-properties”包時:
sudo apt-get install python-software-properties
未安裝程序“add-apt-repository”(也未安裝 apt-add-repository):
root@vm7590:~# add-apt-repository The program 'add-apt-repository' is currently not installed. You can install it by typing: apt-get install python-software-properties
和
root@vm7590:~# apt-add-repository The program 'apt-add-repository' is currently not installed. You can install it by typing: apt-get install python-software-properties
但程序“python-software-properties”已經安裝。
root@vm7590:~# sudo apt-get install python-software-properties sudo: unable to resolve host vm7590 Reading package lists... Done Building dependency tree Reading state information... Done python-software-properties is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
**我究竟做錯了什麼?**是否有其他方法可以添加 ppa 源?
我的系統如下:
root@vm7590:~# uname -a Linux vm7590 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
您需要安裝
software-properties-common
而不是python-software-properties
. 請參閱https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/439566。
儲存庫中的包名稱從 更改
python-software-properties
為python3-software-properties
。安裝它,一切都會好起來的!