Score:0

I'm getting an error: Sub-process /usr/bin/dpkg returned an error code (1)

dz flag

I'm using Ubuntu 22.04.1 LTS. I was having the dpkg error so I searched online for solutions and I ran sudo apt install -f and it returned:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up javascript-common (11+nmu1) ...
dpkg: error processing package javascript-common (--configure):
 installed javascript-common package post-installation script subprocess returne
d error exit status 1
dpkg: dependency problems prevent configuration of libjs-popper.js:
 libjs-popper.js depends on javascript-common; however:
  Package javascript-common is not configured yet.

dpkg: error processing package libjs-popper.js (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libjs-bootstrap4:
 libjs-bootstrap4 depends on libjs-popper.js (>= 1.14.6+ds2-2); however:
  Package libjs-popper.js is not configured yet.

dpkg: error processing package libjs-bootstrap4 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of phpmyadmin:
 phpmyadmin depends on libjs-bootstrap4; however:
  Package libjs-bootstrap4 is not configured yet.

dpkg: error processing package phpmyadmin (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          No apport report written because the error message ind
icates its a followup error from a previous failure.
                                                    No apport report written bec
ause MaxReports is reached already
                                  Errors were encountered while processing:
 javascript-common
 libjs-popper.js
 libjs-bootstrap4
 phpmyadmin

Then I tried running sudo apt install --fix-broken which also returned similar errors.

There is another problem: When I start my laptop it directly goes to a boot menu. Then I need to start pc by going to advanced options and selecting a ubuntu version.

I've started using Ubuntu very recently and these error are really bothersome. It will be really helpful if you could suggest some fix.

Thanks.

David avatar
cn flag
It would help a lot if you include the version of Ubuntu in your question.
Wakil Ahmed avatar
dz flag
I just added it @David
karel avatar
sa flag
Does this answer your question? [Package dbus is not configured yet](https://askubuntu.com/questions/202321/package-dbus-is-not-configured-yet) and [Can't upgrade/update ubuntu 18.04 as apt/dpkg error is showing up](https://askubuntu.com/q/1056780/)
Score:0
om flag

I had the same problem and I just ran these commands.

sudo apt remove libjs-popper.js
sudo apt remove javascript-common
sudo apt autoclean
sudo apt update

Hope it works.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.