我正在运行Ubuntu 14.04。运行时:

sudo add-apt-repository ppa:ubuntu-wine/ppa


出现以下错误:

sudo: add-apt-repository: command not found


我尝试运行
/>
sudo apt-get install software-properties-common


,但显示:

software-properties-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


评论

这是旧帖子,也许OP不再在乎!但是,您是否尝试过sudo apt install software-properties-common --reinstall?

#1 楼

对于Ubuntu 14.04或更高版本,您需要安装software-properties-common软件包:

sudo apt install software-properties-common


我在此博客中找到了解决方案:
Ubuntu Server 14.4(Trusty Tahr)– add-apt-repository:找不到命令

#2 楼

如果您使用的是较早版本的Ubuntu,即12.10之前的版本,则必须安装软件包python-software-properties

sudo apt install python-software-properties


评论


我在Ubuntu 16.04 LTS上遇到了这个问题。这已解决,但安装后我还必须重新引导服务器。

–埃里克·卡尔科肯(Erik Kalkoken)
19年8月15日在10:45

这在Ubuntu 14.04 LTS上为我解决了。已经安装了常用软件属性。

– kap
19-10-11在11:55

这已经在Ubuntu 12.04.5 LTS上为我解决了,因为已经安装了software-properties-common。

–岩石浣熊
20-08-28在0:18