Uma Nota: Esta questão pode ser exatamente a mesma pergunta dada em Como cancelar uma instalação no Centro de Software? mas as soluções listadas não funcionaram para mim.
Pergunta:
Estou tentando finalizar uma instalação de software do Ubuntu Software Center. Eu tentei instalar o matlab-support
0.0.17
do centro de software:
This package does not provide MATLAB. Instead, it configures an
existing MATLAB installation to integrate more comfortably in Debian
installation.
No entanto, eu não tinha o MATLAB instalado no meu sistema e acidentalmente tentei fazer o download de matlab-support 0.0.17
. Como resultado, estou enfrentando o seguinte problema:
Sempre que abro o Ubuntu Software Center, percebo que há um processo sempre em execução. Mostra o suporte a matlab 0.0.17 instalando ...
EuprocuroumamaneiradefinalizarainstalaçãonaguiaProgressoparaobterisso:
Umavezlá,nãovejocomodesmarcarouencerraroprocesso.
Editar:saídaparasudoapt-getinstall-f
Readingpackagelists...DoneBuildingdependencytreeReadingstateinformation...Done0upgraded,0newlyinstalled,0toremoveand12notupgraded.
Editar:saídaparasudoapt-getupgrade
Readingpackagelists...DoneBuildingdependencytreeReadingstateinformation...DoneThefollowingpackageshavebeenkeptback:dpkg-devlibatlas3gf-baselibblas-devlibblas3gflibdpkg-perlliblapack-devliblapack3gflinux-headers-generic-lts-quantallinux-image-generic-lts-quantalr-base-devr8168-dkmstexinfo0upgraded,0newlyinstalled,0toremoveand12notupgraded.
Editar:saídaparadpkg-l|grepmatlab
Nenhumamensagemdesaída:
anirudh@anirudh-Vostro-3445:~$dpkg-l|grepmatlabanirudh@anirudh-Vostro-3445:~$
Editar:saídaparasudoapt-getinstallmatlab-support
Readingpackagelists...DoneBuildingdependencytreeReadingstateinformation...DoneThefollowingNEWpackageswillbeinstalled:matlab-support0upgraded,1newlyinstalled,0toremoveand12notupgraded.Needtoget0B/27.9kBofarchives.Afterthisoperation,165kBofadditionaldiskspacewillbeused.debconf:DbDriver"config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Selecting previously unselected package matlab-support.
(Reading database ... 187961 files and directories currently installed.)
Unpacking matlab-support (from .../matlab-support_0.0.17_all.deb) ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Setting up matlab-support (0.0.17) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing matlab-support (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
matlab-support
E: Sub-process /usr/bin/dpkg returned an error code (1)
Editar: saída para sudo fuser -v /var/cache/debconf/config.dat
USER PID ACCESS COMMAND
/var/cache/debconf/config.dat:
root 11060 F.... dpkg-preconfigu
Editar: outro conjunto de comandos com saída sudo kill -9 11060
e sudo apt-get install matlab-support
:
anirudh@anirudh-Vostro-3445:~$ sudo kill -9 11060
anirudh@anirudh-Vostro-3445:~$ sudo apt-get install matlab-support
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Editar: Saída para sudo fuser /var/lib/dpkg/lock
(sem mensagem de saída)
anirudh@anirudh-Vostro-3445:~$ sudo fuser /var/lib/dpkg/lock
[sudo] password for anirudh:
anirudh@anirudh-Vostro-3445:~$