0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Raspbian Jessieでdpkg-debコマンドが失敗する場合

Posted at

参考

現象

$ LANG=C sudo apt-get install screen
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  dc
Use 'apt-get autoremove' to remove it.
Suggested packages:
  iselect screenie byobu
The following NEW packages will be installed:
  screen
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/522 kB of archives.
After this operation, 854 kB of additional disk space will be used.
/usr/bin/dpkg-deb: 1: /usr/bin/dpkg-deb: �z����c���9��3��_<��]�3�dz�`��?�v��,�;�Y����#ny��w�b�
                                                                                                   {t5�9�[��{��>�~|����ẏqϣ
                                                                                                                             �G;��瓞�<r���W�}������uϣ?}_ޚ^}.y�<���^}_~��E<~���Z�"�}�|����ǯ��|���R����鬗P�}/��[���վ,�ߗAg��q��e��ŗя�^��V�: not found
/usr/bin/dpkg-deb: 1: /usr/bin/dpkg-deb: �: not found
/usr/bin/dpkg-deb: 2: /usr/bin/dpkg-deb: Syntax error: word unexpected (expecting ")")
dpkg: error processing archive /var/cache/apt/archives/screen_4.2.1-3+deb8u1_armhf.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/screen_4.2.1-3+deb8u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

パッケージがインストールできない・・・。

対処

を取得し差し替える

ar x dpkg_1.17.26_armhf.deb data.tar.gz
tar xf data.tar.gz ./usr/bin/dpkg-deb
sudo mv usr/bin/dpkg-deb /usr/bin/

これで動くようになりました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?