dpkg --configure -a'

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
Stormdrainer
Level 2
Level 2
Posts: 82
Joined: Sun Jul 05, 2020 8:14 am

dpkg --configure -a'

Post by Stormdrainer »

I have been updating my installation of Linux Mint 21. When I try to do this I get an error message saying: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

How do I run dpkg --configure -a. I am a beginner. Could you please spell out each stage I need to go through? Thanks very much.

Also How do I report the item I am asked to report.
Thanks for any help you can give.
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: dpkg --configure -a'

Post by sleeper12 »

You need to use sudo:

Code: Select all

sudo dpkg --configure -a
User avatar
Pjotr
Level 24
Level 24
Posts: 20142
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: dpkg --configure -a'

Post by Pjotr »

- Launch a terminal window (this is how to launch a terminal window);

- Copy/paste this command into the terminal:

Code: Select all

sudo dpkg --configure -a
Press Enter.

Edit: sleeper12 beat me to it. :P
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
diam0ndkiller
Level 2
Level 2
Posts: 83
Joined: Fri Dec 08, 2023 3:06 am
Location: Germany

Re: dpkg --configure -a'

Post by diam0ndkiller »

Yeah that sudo thing... A beginner friend of mine had the same problem... They should really add that information to the error in the Update Manager...
Linux Mint Xfce 21 | CalyxOS 5.4.1 | Raspberry Pi OS 11
djph
Level 7
Level 7
Posts: 1964
Joined: Thu Jun 27, 2019 5:43 am
Location: ::1

Re: dpkg --configure -a'

Post by djph »

It's one of those things that (as I recall after looking once) is a case of "a simple matter of programming" (i.e. looks simple on the surface, but isn't).
User avatar
Pjotr
Level 24
Level 24
Posts: 20142
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: dpkg --configure -a'

Post by Pjotr »

djph wrote: Tue Mar 26, 2024 7:27 am It's one of those things that (as I recall after looking once) is a case of "a simple matter of programming" (i.e. looks simple on the surface, but isn't).
Upstream thingy with apt / apt-get / dpkg?
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Stormdrainer
Level 2
Level 2
Posts: 82
Joined: Sun Jul 05, 2020 8:14 am

Re: dpkg --configure -a'

Post by Stormdrainer »

Thank you for the replies.
djph
Level 7
Level 7
Posts: 1964
Joined: Thu Jun 27, 2019 5:43 am
Location: ::1

Re: dpkg --configure -a'

Post by djph »

Pjotr wrote: Tue Mar 26, 2024 7:32 am
djph wrote: Tue Mar 26, 2024 7:27 am It's one of those things that (as I recall after looking once) is a case of "a simple matter of programming" (i.e. looks simple on the surface, but isn't).
Upstream thingy with apt / apt-get / dpkg?
Yeah, mostly that the switch to detect if it was run by pkexec is not easy (well, as I vaguely recall -- it's been an absolute age)
Post Reply

Return to “Beginner Questions”