i cant install any packages

Asked by amalhashim

dialog box says package is corrupted or i have no permission to run it

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu dpkg Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

hello

please paste the output of

sudo apt-get update

Revision history for this message
amalhashim (h-amalhashim) said :
#2

i tried to install a package, but cancelled the installation in midway. The package manager was left froen and ihad to shut down without closing it. the next time i logged in i had this problem. message--- It is impossible to install or remove any software. Please use the package manager "Synaptic" or run "sudo apt-get install -f" in a terminal to fix this issue at first.

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

paste the output of

sudo apt-get install -f

here

Revision history for this message
Martin von Wittich (martin.von.wittich) said :
#4

You could also try

sudo dpkg --configure -a

This should configure all packages that were installed but remained unconfigured. If there are no unconfigured packages, it won't do anything.

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

Also try:

- Reboot your pc, open a Terminal from the menu Applications → Accessories → Terminal and type:

sudo dpkg --configure -a

give your user password when requested, you don't see nothing when you type it, then press enter.

use the TAB keyboard key to navigate to dialogs configuration window, if they appears to you

Then to complete your system update/upgrade:

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

Can you help with this problem?

Provide an answer of your own, or ask amalhashim for more information if necessary.

To post a message you must log in.