我尝试使用 apt-get install libzmq-dev 在我的 debian 服务器上安装 ZeroMQ,并得到以下输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libzmq-dev
然后我尝试使用 add-apt-repository ppa:chris-lea/zeromq 添加 repo 并得到:
bash: add-apt-repository: command not found
然后我检查是否安装了 python-software-properties。
apt-get install python-software-properties
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 1 not upgraded.
然后我尝试安装 software-properties-common 但是它找不到该包
apt-get install software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package software-properties-common
下一步我该做什么?
答案1
然后我尝试使用 add-apt-repository ppa:chris-lea/zeromq 添加 repo 并得到:
这是无效命令。您应该使用:
$ apt-add-repository ppa:chris-lea/zeromq