我正在尝试安装MKChromecast。
按照网站上的说明,我首先尝试:
$ sudo apt-get install mkchromecast
返回:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mkchromecast
当这不起作用时,我下载了.deb 并尝试了这个:
$ sudo dpkg -i mkchromecast_0.3.6-3_all.deb
并得到以下回复:
Selecting previously unselected package mkchromecast.
(Reading database ... 244586 files and directories currently installed.)
Preparing to unpack mkchromecast_0.3.6-3_all.deb ...
Unpacking mkchromecast (0.3.6-3) ...
dpkg: dependency problems prevent configuration of mkchromecast:
mkchromecast depends on python-flask; however:
Package python-flask is not installed.
mkchromecast depends on python-pychromecast; however:
Package python-pychromecast is not installed.
mkchromecast depends on python-psutil; however:
Package python-psutil is not installed.
mkchromecast depends on vorbis-tools (>= 1.4.0); however:
Package vorbis-tools is not installed.
mkchromecast depends on lame (>= 3.99.0); however:
Package lame is not installed.
mkchromecast depends on flac (>= 1.3.0); however:
Package flac is not installed.
mkchromecast depends on python-pyqt5; however:
Package python-pyqt5 is not installed.
mkchromecast depends on youtube-dl; however:
Package youtube-dl is not installed.
dpkg: error processing package mkchromecast (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
mkchromecast
一些谷歌搜索引导我尝试:
sudo gdebi mkchromecast_0.3.6-3_all.deb
返回:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: python-pychromecast
所以我下载了 python-pychromecast.deb 并:
sudo gdebi python-pychromecast_0.7.7-2_all.deb
但似乎没有安装正确版本的 python-protobuf:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: python-protobuf (>= 3)
但是,如果我运行:
sudo apt-get install python-protobuf
它告诉我它已经是最新版本:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-protobuf is already the newest version (2.6.1-1.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
因此我强制安装了正确的版本:
sudo -H pip install --upgrade protobuf==3.2.0
但这给出了这样的回应:
Requirement already up-to-date: protobuf==3.2.0 in /usr/local/lib/python2.7/dist-packages/protobuf-3.2.0-py2.7.egg
Requirement already up-to-date: six>=1.9 in /usr/lib/python2.7/dist-packages (from protobuf==3.2.0)
Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages (from protobuf==3.2.0)
Requirement already up-to-date: appdirs>=1.4.0 in /usr/local/lib/python2.7/dist-packages (from setuptools->protobuf==3.2.0)
Requirement already up-to-date: packaging>=16.8 in /usr/local/lib/python2.7/dist-packages (from setuptools->protobuf==3.2.0)
Requirement already up-to-date: pyparsing in /usr/local/lib/python2.7/dist-packages (from packaging>=16.8->setuptools->protobuf==3.2.0)
这让我相信应该安装版本 >= 3...
谁能告诉我我做错了什么?