dpkg configure a/ "command not found"

Asked by ray prk

tried marcobras long list...nogo..."command not found" (repositories checked)????????????

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
ray prk
Solved:
Last query:
Last reply:
Revision history for this message
Caesar (shcaesar) said :
#1

perhaps it should be "dpkg --configure -a"

Revision history for this message
ray prk (ray-prk) said :
#2

thanks caesar...i was just "short-handing" ...i duplicated marcobras instructions--honest

Revision history for this message
Caesar (shcaesar) said :
#3

have you tried to install or reinstall dpkg with command: sudo apt-get install dpkg?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

The "dpkg --configure -a" is asked by the system when a previous update/upgrade process have not completely performed good, and it must run with "root" privileged administrative user.
Using the "sudo" command we can do a command as "root" user, and "dpkg --configure -a" need be run from root user.
After the "dpkg --configure -a" command i add all the usual commands (see below) you can run to be sure your system became fully upgraded.

Typing the commands as sudo the system will ask you for a password, please give your user password when requested, you don't see nothing when you type it, then press enter.

So to be sure your system is fully updated/upgraded with no pending packages or errors:

Open a Terminal from the menu Applications → Accessories → Terminal and type:
(when the system ask you a password give your user password, you will not see nothing when you type it, then press enter)

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

Hope this helps

Revision history for this message
ray prk (ray-prk) said :
#5

thankyou both...caesars advice produced: dpkg--configure-a manually....marcobras produced: "command not found"...(did it twice...very carefully).hmmmm.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

Please be careful the command is:

sudo <space> dpkg <space> --configure <space> -a

Hth

Revision history for this message
ray prk (ray-prk) said :
#7

don't know where to begin...you were right about the spaces...it produced quite alot of activity,.... finally getting hung-up for hours trying to load: "sun-java6-bin" ...i'm not sure it succeeded...went to bed...next day tried same again...this time it presented me with some instruction: dpkg--help;d select or aptitude--package management;dpkg -Dhelp--dpkg debug flag values...etc.etc. not knowing what to do with all of that...i tried marcobras list which produced: SERIOUS WARNING and don't understand what the P in upgrade means and don't understand CONFIGURE!....yesterday intrepid disk arrived, tomorrow i reboot...above all...thanks....

Revision history for this message
Linn Bennett (helmylin2) said :
#8

marcobra, thank you so much. I'm a 67 yearold silver surfer, I managed to follow your instructions and succeeded. Now all I have to do is sort out the audio! Thanks again!