dpkg --configure -a 错误和 apt 安装pepperflash

问题描述

我有一个戴尔 Inspiron 14-3467,Ubuntu 18.04。我想安装 Opera 浏览器,但安装被中断。它要求我运行:

sudo dpkg --configure -a

机器保持冻结状态:

Setting up pepperflashplugin-nonfree (1.8.3+nmu1ubuntu1).....

当我运行 dpkg --list 我得到这个:

iF  pepperflashplugin-nonfree 1.8.3+nmu1ubuntu1 amd64             Pepper Flash Player - browser plugin

如果我运行 sudo apt-get install -f 它也会冻结:

 Setting up pepperflashplugin-nonfree (1.8.3+nmu1ubuntu1).....

我该如何解决?有没有办法消除pepperflash还是必须要有?

解决方法

#remove lock files
rm /var/lib/dpkg/lock
rm /var/lib/dpkg/lock-frontend
rm /var/cache/apt/archives/lock

#remove pepperflash
apt remove pepperflashplugin-nonfree

#repair dpkg now success
dpkg --configure -a
,

要查看此包是什么,请使用 apt-cache

apt-cache show pepperflashplugin-nonfree

如果您认为没有必要,请将其删除:

apt purge pepperflashplugin-nonfree
,

apt-cache 显示pepperflashplugin-nonfree

Package: pepperflashplugin-nonfree
Architecture: amd64
Version: 1.8.3+nmu1ubuntu1
Priority: optional
Section: multiverse/web
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Bart Martens <bartm@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 31
Pre-Depends: ca-certificates
Depends: debconf | debconf-2.0,wget,gnupg1 | gnupg,libatk1.0-0,libcairo2,libfontconfig1,libfreetype6,libgcc1,libglib2.0-0,libgtk2.0-0 (>= 2.14),libnspr4,libnss3,libpango-1.0-0 | libpango1.0-0,libstdc++6,libx11-6,libxext6,libxt6,libcurl3-gnutls,binutils
Suggests: chromium-browser,ttf-mscorefonts-installer,ttf-dejavu,ttf-xfree86-nonfree
Conflicts: chromium-browser (<< 37.0.2062.120-4),libflash-mozplugin
Filename: pool/multiverse/p/pepperflashplugin-nonfree/pepperflashplugin-nonfree_1.8.3+nmu1ubuntu1_amd64.deb
Size: 5536
MD5sum: 47b06fd1cf1d511cc5cf6f7ae979b81b
SHA1: 41636ebbc23d68d2f9c8f72f78a17efd854aac5d
SHA256: 3b21cb1a611d70e1fdc5948c4d4a43c442d71b1f2dc3dac53b5315e90d395347
Homepage: http://wiki.debian.org/PepperFlashPlayer
Description-en: Pepper Flash Player - browser plugin
 This package will download Chrome from Adobe,and unpack it to make the
 included Pepper Flash Player available for use with Chromium.  The end user
 license agreement is available at Adobe.
Description-md5: ffddffcbb66de5d31dd4c784e6aa4973

apt purge Pepperflashplugin-nonfree

E: Could not lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: The administration directory (/var/lib/dpkg/) could not be locked,maybe there is some other process using it?

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...