When executing sudo apt get upgrade in Ubuntu, the following error is reported:
Setting up bluez (4.101-0ubuntu13.1) ...
reload: Job is not running: dbus
invoke-rc.d: initscript dbus, action "force-reload" failed.
start: Job failed to start
invoke-rc.d: initscript bluetooth, action "start" failed.
dpkg: error processing package bluez (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bluez-alsa:i386:
bluez-alsa:i386 depends on bluez; however:
Package bluez is not configured yet.
dpkg: error processing package bluez-alsa:i386 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
bluez
bluez-alsa:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
You can solve this problem by executing the following command:
$ sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/
$ sudo mkdir /var/lib/dpkg/info/
$ sudo apt-get update
...
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up bluez (4.101-0ubuntu13.1) ...
Setting up blueman (1.23-git201403102151-1ubuntu1) ...
Setting up bluetooth (4.101-0ubuntu13.1) ...
Setting up bluez-alsa:amd64 (4.101-0ubuntu13.1) ...
Setting up bluez-alsa:i386 (4.101-0ubuntu13.1) ...
Setting up bluez-gstreamer (4.101-0ubuntu13.1) ...
Setting up bluez-utils (4.101-0ubuntu13.1) ...
$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old/
$ sudo rm -rf /var/lib/dpkg/info
$ sudo mv /var/lib/dpkg/info_old/ /var/lib/dpkg/info/
After entering the above command, there is no problem in executing sudo apt get update and sudo apt get upgrade.
Read More:
- Dpkg: error processing package XXX solution
- MySQL installation failed: dpkg: error processing package MySQL server (- – configure): dependency problem
- E: sub process / usr / bin / dpkg returned an error code (2) solution under Ubuntu
- dpkg: error processing archive /var/cache/apt/archives/libc6-dev-amd64_2.19-0ubuntu6.9_i386.deb (–u
- Solve the red letter prompt “sub process / usr / bin / dpkg returned an error code (2) in Cydia
- Ubuntu error: flAbsPath on /var/lib/dpkg/status failed – realpath (2: No such file or directory)
- dpkg: error: dpkg frontend is locked by another process
- dpkg:error: dpkg frontend is locked by another process
- Solution of dpkg interrupted problem
- [Linux] failed to install libudev dev in Ubuntu 18.04
- After Android studio creates a new bottomnavigationactivity, there is a blank solution in the upper area of fragment
- No artifacts package solution for idea to configure Tomcat
- The solution of red X in eclipse error pages
- The solution of notes floating red error in IntelliJ idea
- Configure glut in Ubuntu and implement basic OpenGL experiment on CodeBlocks platform
- Prompt “XXX is” when debugging real machine busy:Processing symbol Files “and” Xcode will continue when XXX is finished“
- Solve the ad schematic compilation warning (off grid net label XXX at XXX)
- How to configure OpenGL with CodeBlocks in Ubuntu
- Install And Configure Nagios on Ubuntu 14.04 LTS
- configure: error: readline library not found solution