gerenciador de pacotes quebrado. dependências não atendidas [duplicado]

1

Eu tentei consertar um problema e criei outro ...

Meu gerenciador de atualização quebrou ...

The package system is broken

Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f

Eu corro apt-get install -f e recebo:

missx@missx:~$ apt-get install -f
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Eu tentei reinstalar o software center eu recebo isso

missx@missx:~$ sudo apt-get --reinstall install software-center
[sudo] password for missx: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 network-manager-dbg : Depends: network-manager (= 0.9.4.0-0ubuntu3) but 0.9.4.0-0ubuntu4.2 is to be installed or
                                libnm-util2 (= 0.9.4.0-0ubuntu3) but 0.9.4.0-0ubuntu4.2 is to be installed or
                                libnm-glib4 (= 0.9.4.0-0ubuntu3) but 0.9.4.0-0ubuntu4.2 is to be installed or
                                libnm-glib-vpn1 (= 0.9.4.0-0ubuntu3) but 0.9.4.0-0ubuntu4.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

O gerenciador de rede é a porcaria que eu instalei ontem para consertar meu problema de wi-fi ...

Não tem synaptic instalado (isso seria muito fácil, certo ..?)

sudo apt-get -f install

missx@missx:~$ sudo apt-get -f install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-38 libsub-name-perl libparse-debianchangelog-perl
  libnspr4-0d:i386 libsigc++-2.0-0c2a:i386 libcwidget3
  libboost-iostreams1.46.1 libgconf2-4:i386 libapt-pkg4.12:i386
  libio-string-perl linux-headers-3.2.0-38-generic libept1.4.12
  libclass-accessor-perl libnss3-1d:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  network-manager-dbg
The following packages will be upgraded:
  network-manager-dbg
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,463 kB of archives.
After this operation, 8,192 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of network-manager-dbg:
 network-manager-dbg depends on network-manager (= 0.9.4.0-0ubuntu3) | libnm-util2 (= 0.9.4.0-0ubuntu3) | libnm-glib4 (= 0.9.4.0-0ubuntu3) | libnm-glib-vpn1 (= 0.9.4.0-0ubuntu3); however:
  Version of network-manager on system is 0.9.4.0-0ubuntu4.2.
  Version of libnm-util2 on system is 0.9.4.0-0ubuntu4.2.
  Version of libnm-glib4 on system is 0.9.4.0-0ubuntu4.2.
  Version of libnm-glib-vpn1 on system is 0.9.4.0-0ubuntu4.2.
dpkg: error processing network-manager-dbg (--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:

network-manager-dbg     E: Subprocesso / usr / bin / dpkg retornou um código de erro (1) "

    
por Shellby 11.07.2013 / 15:25

1 resposta

0

Não vejo motivo para reinstalar o centro de software.

O comando "apt-get install" precisa de "sudo" na frente dele.

Como você pode ver na mensagem de erro E: Não foi possível abrir o arquivo de bloqueio / var / lib / dpkg / lock - open (13: Permissão negada ) E: Não é possível bloquear o diretório de administração (/ var / lib / dpkg /), você é root?

Eu não sei qual era o seu problema sem fio, mas não vejo por que instalar o gerenciador de rede o teria corrigido (considerando que o gerenciador de rede está instalado por padrão e pelas mensagens que você postou, acho que você acabou de atualizar isso)

    
por tgm4883 11.07.2013 / 15:30