Estou tentando atualizar o software usando o Software Updater, mas ele ficou no meio da instalação mostrando "pré-configurando o pacote ..." (todas as atualizações foram baixadas).
Então eu tenho um sinal vermelho no canto superior direito da minha tela mostrando:
> An error occurred, please run Package Manager from the right-click menu or apt-get in a teminal to see what is wrong. The error message was :'Error:BrokenCount>0'. This usually means that your installed packages have unment dependences
Então eu tentei
sudo apt-get install --fix-broken
Então eu ainda tenho erros assim:
> 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:
libtcl8.5 libtk8.5 tcl8.5 tk8.5
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
cpp-4.8 g++-4.8 gcc-4.8 gfortran-4.8 libasan0 libatomic1 libc6 libc6:i386
libgcc-4.8-dev libgfortran-4.8-dev libgfortran3 libgomp1 libitm1
libquadmath0 libstdc++-4.8-dev libstdc++6 libstdc++6:i386 libtsan0
Suggested packages:
gcc-4.8-locales g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg
gcc-4.8-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
libasan0-dbg libtsan0-dbg libquadmath0-dbg gfortran-4.8-multilib
gfortran-4.8-doc libgfortran3-dbg glibc-doc glibc-doc:i386 locales:i386
libstdc++-4.8-doc
The following packages will be upgraded:
cpp-4.8 g++-4.8 gcc-4.8 gfortran-4.8 libasan0 libatomic1 libc6 libc6:i386
libgcc-4.8-dev libgfortran-4.8-dev libgfortran3 libgomp1 libitm1
libquadmath0 libstdc++-4.8-dev libstdc++6 libstdc++6:i386 libtsan0
18 upgraded, 0 newly installed, 0 to remove and 224 not upgraded.
6 not fully installed or removed.
Need to get 0 B/45.5 MB of archives.
After this operation, 6,144 B disk space will be freed.
Do you want to continue? [Y/n] Y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 543955 files and directories currently installed.)
Preparing to unpack .../libc6_2.19-0ubuntu6.9_amd64.deb ...
De-configuring libc6:i386 (2.19-0ubuntu6.7) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.19-0ubuntu6.9_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Preparing to unpack .../libc6_2.19-0ubuntu6.9_i386.deb ...
De-configuring libc6:amd64 (2.19-0ubuntu6.7) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.19-0ubuntu6.9_i386.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Preparing to unpack .../libitm1_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libitm1:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../libgomp1_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libgomp1:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../libgfortran3_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libgfortran3:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../libasan0_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libasan0:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../cpp-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking cpp-4.8 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../libatomic1_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libatomic1:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../libtsan0_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libtsan0:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../libquadmath0_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../libgfortran-4.8-dev_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libgfortran-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../g++-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking g++-4.8 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../libstdc++-4.8-dev_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libstdc++-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../libgcc-4.8-dev_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libgcc-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../gcc-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking gcc-4.8 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../gfortran-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking gfortran-4.8 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
>
> ***Errors were encountered while processing:***
>
> ***/var/cache/apt/archives/libc6_2.19-0ubuntu6.9_amd64.deb***
>
> ***/var/cache/apt/archives/libc6_2.19-0ubuntu6.9_i386.deb***
>
> ***E: Sub-process /usr/bin/dpkg returned an error code (1)***
Eu fiz alguma pesquisa no Ask Ubuntu, parece que há problemas de dependência durante a minha atualização. Alguns sugerem que exclua os arquivos .deb e execute novamente a atualização. Não parece uma boa idéia, já que não tenho idéia do que são os dois arquivos.
Alguém tem uma idéia do que está acontecendo?
Muito obrigado!
EDITAR
Eu tentei a solução de Sayed em aqui
sudo fuser -v /var/cache/debconf/config.dat
sudo kill PID
Então tentei atualizar novamente:
sudo apt-get upgrade
E tem saída:
> 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:
libc6-dbg : Depends: libc6 (= 2.19-0ubuntu6.9) but 2.19-0ubuntu6.7 is installed
libc6-dev : Depends: libc6 (= 2.19-0ubuntu6.9) but 2.19-0ubuntu6.7 is installed
libstdc++-4.8-dev : Depends: libstdc++6 (>= 4.8.4-2ubuntu1~14.04.3) but 4.8.4-2ubuntu1~14.04.1 is installed
libstdc++6 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04.1) but 4.8.4-2ubuntu1~14.04.3 is installed
libstdc++6:i386 : Depends: gcc-4.8-base:i386 (= 4.8.4-2ubuntu1~14.04.1) but 4.8.4-2ubuntu1~14.04.3 is installed
E: Unmet dependencies. Try using -f.
Como devo fazer isso?
Aqui está a saída quando eu tentei sudo apt-get update
:
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
Por que esse comando é diferente?