在终端输入后sudo apt install vlc
,我得到的结果如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
vlc : Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or
libgles1
Depends: libgles2-mesa (>= 7.8.1) but it is not going to be installed or
libgles2
E: Unable to correct problems, you have held broken packages.
答案1
sudo apt update
sudo dpkg --configure -a
sudo apt install -f
sudo apt install vlc
但是如果您想要最新版本的 vlc(当前为 VLC 3.0),请从 snap 安装。
sudo snap install vlc
答案2
只需从Ubuntu 软件中心
尝试后
sudo apt-get update –fix-missing
和
sudo dpkg –configure -a
和
sudo apt-get install -f
损坏软件包的问题仍然存在,解决方案是手动编辑 dpkg 状态文件。
$ sudo nano /var/lib/dpkg/status
(您可以使用 vim 或 gedit 代替 nano)找到损坏的包,删除有关它的整个信息块并保存文件。
信息取自iasptk.com