agh*_*bas 3 flash package-management video dpkg
当我播放在线视频时,它们经常被许多眨眼和其他干扰打断。很多次我都看到一条错误消息,说 Flash 播放器崩溃了。当我尝试在命令行上安装 flash 插件时,显示此错误。谁能帮我摆脱这场冲突?
$ sudo apt-get install flashplugin-installer
[sudo] password for agha:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a'
to correct the problem
Run Code Online (Sandbox Code Playgroud)
这是一个完整的日志:
Ign http://in.archive.ubunutu.com trusty-updates/restricted Translation-en_IN
Ign http://in.archive.ubunutu.com trusty-updates/universe Translation-en_IN
Ign http://in.archive.ubunutu.com trusty-backports/main Translation-en_IN
Ign http://in.archive.ubunutu.com trusty-backports/multiverse Translation-en_IN
Ign http://in.archive.ubunutu.com trusty-backports/restricted Translation-en_IN
Ign http://in.archive.ubunutu.com trusty-backports/universe Translation-en_IN
Fetched 964 kB in 42s (22.4 kB/s)
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
agha@agha-GA-78LMT-USB3:~$ sudo apt-get install wine1.7 winetricks
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
agha@agha-GA-78LMT-USB3:~$ sudo dpkg --configure -a
dpkg: error: dpkg status database is locked by another process
agha@agha-GA-78LMT-USB3:~$ sudo apt-get install -f
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Run Code Online (Sandbox Code Playgroud)
小智 15
以下对我有用!出现此错误时,我正在尝试安装无线驱动程序。不得不删除文件和锁定文件。
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
cd /var/lib/dpkg/updates
sudo rm *
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
然后你可以运行apt-get install你想要安装的任何包