Sou meio novo no Ubuntu. Um par de dias atrás, eu atualizei para 16.04 a partir de 14.04. Após a atualização, não posso instalar um novo software nem atualizar o sistema operacional. Quando eu entro
sudo apt-get upgrade
Eu entendo que esta é minha saída:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
apt apt-transport-https apt-utils gcc-doc libapt-inst2.0 libapt-pkg5.0
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 2.011 kB/2.014 kB of archives.
After this operation, 6.144 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirror.ni.net.tr/ubuntu xenial-updates/main amd64 libapt-pkg5.0 amd64 1.2.12~ubuntu16.04.1 [696 kB]
Get:2 http://mirror.ni.net.tr/ubuntu xenial-updates/main amd64 libapt-inst2.0 amd64 1.2.12~ubuntu16.04.1 [55,4 kB]
Get:3 http://mirror.ni.net.tr/ubuntu xenial-updates/main amd64 apt amd64 1.2.12~ubuntu16.04.1 [1.038 kB]
Get:4 http://mirror.ni.net.tr/ubuntu xenial-updates/main amd64 apt-utils amd64 1.2.12~ubuntu16.04.1 [196 kB]
Get:5 http://mirror.ni.net.tr/ubuntu xenial-updates/main amd64 apt-transport-https amd64 1.2.12~ubuntu16.04.1 [25,7 kB]
Fetched 2.011 kB in 2s (859 kB/s)
(Reading database ... 325999 files and directories currently installed.)
Preparing to unpack .../gcc-doc_4%3a5.3.1-1ubuntu1_amd64.deb ...
install-info: No dir file specified; try --help for more information.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/gcc- doc_4%3a5.3.1-1ubuntu1_amd64.deb (--unpack):
there is no script in the new version of the package - giving up
install-info: No dir file specified; try --help for more information.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../libapt-pkg5.0_1.2.12~ubuntu16.04.1_amd64.deb ...
Unpacking libapt-pkg5.0:amd64 (1.2.12~ubuntu16.04.1) over (1.2.10ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
/var/cache/apt/archives/gcc-doc_4%3a5.3.1-1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Usando o código de erro abaixo, procurei soluções no AskUbuntu, mas não consegui encontrar uma que funcionasse.
Errors were encountered while processing:
/var/cache/apt/archives/gcc-doc_4%3a5.3.1-1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Eu tenho o gcc-doc esperando para ser atualizado no Centro de Software. Quando tento atualizá-lo no Centro de Software, leva uma eternidade e não há atualização. No Synaptics ele pára a atualização por causa do gcc-doc.
Muito obrigado pela ajuda antecipada.