亲爱的 Ubuntu 社区,
这对我来说很奇怪。我添加了 vlc 的夜间构建 ppa,安装了 vlc,删除了 vlc,然后删除了 ppa。现在我卡住了:
$ sudo apt-get install vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
vlc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ which vlc
$ /usr/bin/vlc
bash: /usr/bin/vlc: No such file or directory
$ vlc
The program 'vlc' is currently not installed. You can install it by typing:
sudo apt-get install vlc-nox
同样的问题:
$ sudo apt-get remove --purge vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
vlc*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 4,898 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 210454 files and directories currently installed.)
Removing vlc (2.2.0-1) ...
Purging configuration files for vlc (2.2.0-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu5) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Processing triggers for bamfdaemon (0.5.1+15.04.20150202-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.58ubuntu1) ...
Processing triggers for vlc-nox (2.2.0-1) ...
$ sudo apt-get update
[[cut]]
Reading package lists... Done
$ sudo apt-get install vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
videolan-doc
The following NEW packages will be installed:
vlc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,495 kB of archives.
After this operation, 4,898 kB of additional disk space will be used.
Selecting previously unselected package vlc.
(Reading database ... 210397 files and directories currently installed.)
Preparing to unpack .../archives/vlc_2.2.0-1_amd64.deb ...
Unpacking vlc (2.2.0-1) ...
Processing triggers for mime-support (3.58ubuntu1) ...
Processing triggers for vlc-nox (2.2.0-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu5) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Processing triggers for bamfdaemon (0.5.1+15.04.20150202-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Setting up vlc (2.2.0-1) ...
$ vlc
The program 'vlc' is currently not installed. You can install it by typing:
sudo apt-get install vlc-nox
对我来说很奇怪……
$ sudo apt-get install vlc-nox
Reading package lists... Done Building
dependency tree Reading state information... Done vlc-nox is
already the newest version. 0 upgraded, 0 newly installed, 0 to remove
and 0 not upgraded.
更多信息:
$ apt-cache policy vlc vlc-nox
vlc:
Installed: 2.2.0-1
Candidate: 2.2.0-1
Version table:
*** 2.2.0-1 0
500 http://us.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
100 /var/lib/dpkg/status
vlc-nox:
Installed: 2.2.0-1
Candidate: 2.2.0-1
Version table:
*** 2.2.0-1 0
500 http://us.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
100 /var/lib/dpkg/status
这怎么可能:
# apt-get remove --purge vlc Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: vlc* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 4,898 kB disk space will be freed. Do you want to continue? [Y/n] n Abort.
# vlc The program 'vlc' is currently not installed. You can install it by typing: apt-get install vlc-nox
答案1
解决方案是sudo apt-get purge vlc-data
谢谢大家的帮助!