我尝试在 Web 浏览器中运行 webgl 应用程序,但每次尝试时都没有任何反应。我发现ubuntu-restricted-extras
可以安装以启用 webgl。我的一个朋友在他们的系统上安装了该软件包,并能够运行我尝试运行的 webgl 应用程序。当我尝试使用 Ubuntu 软件中心安装该软件包时,下载停滞了,所以我不得不终止该进程。
输出 sudo apt-get install ubuntu-restricted-extras
Reading package lists... Done
Building dependency tree
Reading state information... Done
ubuntu-restricted-extras is already the newest version.
The following packages were automatically installed and are no longer required:
python-cssselect python-queuelib python-w3lib
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
ttf-mscorefonts-installer
1 upgraded, 0 newly installed, 0 to remove and 145 not upgraded.
1 not fully installed or removed.
Need to get 0 B/27.8 kB of archives.
After this operation, 134 kB of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 286934 files and directories currently installed.)
Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu1_all.deb ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/ttf-mscorefonts-installer_3.4+nmu1ubuntu1_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/ttf-mscorefonts-installer_3.4+nmu1ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
输出 apt-cache policy ubuntu-restricted-extras
$ apt-cache policy ubuntu-restricted-extras
ubuntu-restricted-extras:
Installed: 60.1
Candidate: 60.1
Version table:
*** 60.1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/multiverse amd64 Packages
100 /var/lib/dpkg/status
60 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages
什么原因导致安装出现问题?
答案1
ubuntu-restricted-extras
正如您在命令输出中看到的那样,该包已安装apt-cache policy ubuntu-restricted-extras
现在有三个命令可以修复您的系统。
sudo rm /var/cache/debconf/*.dat
sudo apt-get update
sudo apt-get install -f
如果安装时遇到问题ttf-mscorefonts-installer
,请阅读这。