apt-get fail com “Unpacking replacement diff”

2

Eu tentei instalar o TeXmacs hoje por comme:

sudo apt-get install texmacs

mas essas mensagens aparecem:

Preconfiguring packages ...
(Reading database ... 
dpkg: warning: files list file for package 'diff' missing, assuming package has no files currently installed.
(Reading database ... 212095 files and directories currently installed.)
Preparing to replace diff 1:2.8.1-18 (using .../diff_1%3a2.8.1-18_all.deb) ...
Unpacking replacement diff ...

Não tenho ideia do motivo do meu computador parar aqui.

Eu tento instalar outro software, mas a mesma mensagem virá. Como resolver isso?

Então eu digito o seguinte:

sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock 
sudo mv /var/cache/apt/archives/diff_1%3a2.8.1-18_all.deb /var/tmp
sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get install texmacs

Parece que não funciona:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  python-wxgtk2.8 ttf-symbol-replacement wine1.2-gecko cabextract
  ttf-mscorefonts-installer nvidia-settings python-wxversion
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  diff iamerican ispell libjpeg-progs librsvg2-bin libtiff-tools
  texlive-math-extra texmacs-common texmacs-extra-fonts transfig xaw3dg xfig
  xfig-libs
Suggested packages:
  spell libtiff-opengl xfig-doc
The following NEW packages will be installed:
  iamerican ispell libjpeg-progs librsvg2-bin libtiff-tools texlive-math-extra
  texmacs texmacs-common texmacs-extra-fonts transfig xaw3dg xfig xfig-libs
The following packages will be upgraded:
  diff
1 upgraded, 13 newly installed, 0 to remove and 73 not upgraded.
1 not fully installed or removed.
Need to get 22.8MB of archives.
After this operation, 70.3MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://security.ubuntu.com/ubuntu/ lucid-security/main libtiff-tools 3.9.2-2ubuntu0.6 [252kB]
Get:2 http://archive.ubuntu.com/ubuntu/ lucid/universe diff 1:2.8.1-18 [5,868B]
Get:3 http://archive.ubuntu.com/ubuntu/ lucid/main ispell 3.1.20.0-7 [175kB]
Get:4 http://archive.ubuntu.com/ubuntu/ lucid/main iamerican 3.1.20.0-7 [445kB]
Get:5 http://archive.ubuntu.com/ubuntu/ lucid/main libjpeg-progs 7+really6b-15ubuntu1 [83.8kB]
Get:6 http://archive.ubuntu.com/ubuntu/ lucid-updates/universe librsvg2-bin 2.26.3-0ubuntu1 [23.2kB]
Get:7 http://archive.ubuntu.com/ubuntu/ lucid/main texlive-math-extra 2009-7ubuntu3 [7,121kB]
Get:8 http://archive.ubuntu.com/ubuntu/ lucid/universe texmacs-common 1:1.0.7.3-3 [3,879kB]
Get:9 http://archive.ubuntu.com/ubuntu/ lucid/universe texmacs 1:1.0.7.3-3 [1,944kB]
Get:10 http://archive.ubuntu.com/ubuntu/ lucid/universe texmacs-extra-fonts 0.2 [5,674kB]
Get:11 http://archive.ubuntu.com/ubuntu/ lucid/main transfig 1:3.2.5.a-2.1 [608kB]
Get:12 http://archive.ubuntu.com/ubuntu/ lucid/main xaw3dg 1.5+E-17build1 [176kB]
Get:13 http://archive.ubuntu.com/ubuntu/ lucid/universe xfig 1:3.2.5.b-1ubuntu1 [748kB]
Get:14 http://archive.ubuntu.com/ubuntu/ lucid/universe xfig-libs 1:3.2.5.b-1ubuntu1 [1,679kB]
Fetched 22.8MB in 1min 2s (366kB/s)                                            
Preconfiguring packages ...
(Reading database ... 
dpkg: warning: files list file for package 'diff' missing, assuming package has no files currently installed.
(Reading database ... 212095 files and directories currently installed.)
Preparing to replace diff 1:2.8.1-18 (using .../diff_1%3a2.8.1-18_all.deb) ...
Unpacking replacement diff ...

Por que devo atualizar o pacote diff?

    
por Petrie Wong 09.04.2011 / 13:37

1 resposta

2

Remova o arquivo .deb e tente reparar dpkg

sudo mv /var/cache/apt/archives/diff_1%3a2.8.1-18_all.deb /var/tmp
sudo dpkg --configure -a

EDIT: Por favor, dê uma olhada no seguinte relatório de bug; Isso pode se aplicar à sua situação: bugs.launchpad.net/ubuntu/+source/dpkg/+bug / 624229

    
por arrange 09.04.2011 / 17:44