Is not a debian format archive как исправить

Debugging Central

Debugging Central

This page is part of the debugging series — pages with debugging details for a variety of Ubuntu packages.

Contents

  1. Introduction
  2. Known issues

    1. Corrupted package archive

      1. Not a Debian format archive
      2. Corrupted filesystem tarfile
      3. —fsys-tarfile
      4. short read — Input/output error
      5. Exec format error
      6. triggers ci file contains unknown directive syntax
      7. lzma : decoder error
      8. files list file missing final newline / contains empty filename
    2. Inconsistent state

      1. Package in bad inconsistent state
      2. package is already installed and configured
    3. Other issues

      1. Can’t access archive
      2. No space left on device
      3. DbDriver «config» is locked
      4. /var/lib/defoma/locked exists
      5. /etc/defoma/hints/FONTNAME.hints: Unable to open, or empty
  3. Non-bugs

    1. Segmentation Fault — Exit status 139
  4. Other resources
  5. TODO

Introduction

This page lists some general issues that users might encounter while performing updates of their system. Apport will usually detect these failures and file a bug in Launchpad. These bugs can be identified by the bug tag ‘apport-package’ and can occur on nearly any package.

There are usually log file attached to the report which differs depending on the kind of install/upgrade:

  • Package install/upgrade: DpkgTerminalLog

  • Distribution upgrade: VarLogDistupgradeMain and VarLogDistupgradeApttermlog

Detailed informations about debugging updatemanager can be found at DebuggingUpdateManager.

Documented below are the most commonly reported issues. For each case there is a description and a sample report and when applicable there is a workaround or fix and the master report it should be marked a duplicate of.

Known issues

Corrupted package archive

These errors indicates a corrupted archive (.deb or files on disk) The root cause of the corruption may be a bad network connection, faulty hardware, hardware shutdown,…

For those report the common workaround and stock response is:

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that there was an error caused by a corrupted archive. Please execute the following commands, as it will clear your package cache, in a terminal ( Applications -> Accessories -> Terminal ) :

sudo apt-get clean
sudo apt-get update

Then try performing the update again. This will likely resolve your issue. If so please set the bug’s status to Invalid. Thanks in advance!

Not a Debian format archive

  • Bug : provide a master report

This error indicated that the header of the .deb archive is not recognized as a valid debian format.

dpkg-deb: `/var/cache/apt/archives/libswscale0_4%3a0.5+svn20090706-2ubuntu2_i386.deb' is not a debian format archive 
dpkg: error processing /var/cache/apt/archives/libswscale0_4%3a0.5+svn20090706-2ubuntu2_i386.deb (--unpack): 
 subprocess dpkg-deb --control returned error exit status 2

Corrupted filesystem tarfile

  • Bug 320743

Unpacking libaccess-bridge-java (from .../libaccess-bridge-java_1.24.0-0ubuntu2_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libaccess-bridge-java_1.24.0-0ubuntu2_all.deb (--unpack):
 corrupted filesystem tarfile - corrupted package archive
dpkg-deb: subprocess paste killed by signal (Broken pipe)

—fsys-tarfile

  • Bug : provide a master report
Unpacking replacement audacity-data ...
dpkg-deb: subprocess paste killed by signal (Broken pipe)
dpkg: error processing /var/cache/apt/archives/audacity-data_1.3.7-2ubuntu1_all.deb (--unpack):
 subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/audacity-data_1.3.7-2ubuntu1_all.deb

short read — Input/output error

  • Bug : provide a master report

The ‘short read’ error happens when trying to install a partially downloaded package. The front-end verify the integrity of the archive, but it is not the case if dpkg is invoked directly.

An input/output error is likely to mean filesystem corruption, hardware problems or no space left on hard disk. The typical errors are:

Unpacking linux-image-2.6.27-11-generic (from .../linux-image-2.6.27-11-generic_2.6.27-11.24_i386.deb) ...
Done.
dpkg-deb: subprocess paste killed by signal (Broken pipe)
dpkg: error processing /var/cache/apt/archives/linux-image-2.6.27-11-generic_2.6.27-11.24_i386.deb (--unpack):
 short read in buffer_copy (backend dpkg-deb during `./lib/modules/2.6.27-11-generic/kernel/drivers/infiniband/core/ib_uverbs.ko')

or

Unpacking replacement libfreetype6 ...
dpkg-deb (subprocess): error in buffer_read(stream): failed to write to pipe in copy: Input/output error
dpkg-deb: subprocess paste returned error exit status 2
dpkg: error processing /var/cache/apt/archives/libfreetype6_2.3.9-4ubuntu0.1_i386.deb (--unpack):
 short read in buffer_copy (backend dpkg-deb during `./usr/lib/libfreetype.so.6.3.20')

The suggestion is to run a manual fsck and look whether the hard drive or storage device is operating correctly (dmesg may contain helpful information too)

TODO: Write a standard response

Exec format error

  • Bug : 512096

This error indicates that the installation or removal script is corrupted. It is caused by a sudden system failure during dpkg operation (power failure, hardware failure, …) on filesystems supporting delayed allocation (like ext4, xfs, btrfs, …)

Empty files or files filed with garbage are left on the hard drive. The file causing the dpkg error is one of /var/lib/dpkg/info/PACKAGE_NAME.p*

This error can occur either during installation or removal of the package.

During installation of a package

Setting up flashplugin-installer (10.0.32.18ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing flashplugin-installer (--configure):
 subprocess installed post-installation script returned error exit status 2

During removal of a package

Removing gnome-do ...
dpkg (subprocess): unable to execute installed pre-removal script: Exec format error
dpkg: error processing gnome-do (--purge):
 subprocess installed pre-removal script returned error exit status 2

Workaround A: Finish the install

sudo apt-get clean
sudo aptitude download python-libvirt
sudo dpkg —unpack ./python-libvirt*.deb
sudo dpkg —configure python-libvirt

Workaround B: Remove the package and reinstall

sudo rm /var/lib/dpkg/info/flashplugin-installer.{postinst,prerm,postrm}
sudo apt-get remove —purge flashplugin-installer
sudo apt-get clean
sudo apt-get update

Then reinstall the package

Note: Change the package by the one which failed (check the log file)

Note about localized error message:
Finding this error in the log is not always easy because the error string has been localized.

  • Erreur de format pour exec()
  • Error de formato ejecutable
  • Errore di formato di exec
  • Exec format error
  • Formatfel på körbar fil
  • Érvénytelen végrehajtható fájlformátum
  • Exec formátum hiba
  • Verkeerd uitvoerbaar bestand
  • Exec 格式错误

triggers ci file contains unknown directive syntax

  • Bug 500042

This is the same kind of issue than the one above. It means that the trigger file is empty or corrupted. The file is /var/lib/dpkg/info/PACKAGE.triggers This error can occur during installation or removal of a package.

During installation of a package

Setting up ureadahead (0.90.3-2) ...
dpkg: error processing ureadahead (--configure):
 triggers ci file contains unknown directive syntax

Workaround

remove the file /var/lib/dpkg/info/PACKAGE.triggers
sudo rm /var/lib/dpkg/info/PACKAGE.triggers
and run
sudo dpkg —purge ureadahead
then clean your cache
sudo apt-get clean
and try performing the install of ureadahead again.

lzma : decoder error

  • Bug : provide a master report
Unpacking openjdk-6-jre-lib (from .../openjdk-6-jre-lib_6b12-0ubuntu6_all.deb) ...
lzma: Decoder error
dpkg-deb: subprocess <decompress> returned error exit status 1
dpkg: error processing /var/cache/apt/archives/openjdk-6-jre-lib_6b12-0ubuntu6_all.deb (--unpack):
 short read in buffer_copy (backend dpkg-deb during `./usr/lib/jvm/java-6-openjdk/jre/lib/ext/localedata.jar')

files list file missing final newline / contains empty filename

  • Bug 108189

This error indicates that the file /var/lib/dpkg/info/PACKAGE_NAME.list is corrupted ( empty or full of garbage ) The reason may be a disk error, a memory error, a process being interrupted during unpack, …

Typically these errors take the form :
files list file for package packagename contains empty filename
or
files list file for package packagename is missing final newline

Selecting previously deselected package linux-source-2.6.27.
(Reading database ... dpkg: error processing /var/cache/apt/archives/linux-source-2.6.27_2.6.27-9.19_all.deb (--unpack):
 files list file for package `libpoppler-glib3' is missing final newline

Workaround: Recreate the file list from .deb
This can be fixed, with a little work. If you have the .deb file for the offending package currently available on your system, then check its integrity by running:
dpkg —contents /var/cache/apt/archive/libgnome2-0_2.24.1-0ubuntu3_i386.deb
or get a .deb file by running :
sudo apt-get install —reinstall —download-only libgnome2-0

Once you have a valid .deb file, then you can reconstitute the file. First become root by using sudo -s (enter your administrative user password if necessary), and then use the following command (copy/paste and change the package name accordingly):

dpkg -c /var/cache/apt/archive/libgnome2-0_2.24.1-0ubuntu3_i386.deb | awk 
‘{if ($6 == «./») { print «/.»; } 
else if (substr($6, length($6), 1) == «/») 
{print substr($6, 2, length($6) — 2); } 
else { print substr($6, 2, length($6) — 1);}}’ 
> /var/lib/dpkg/info/libgnome2-0.list

Inconsistent state

Package in bad inconsistent state

  • Bug : provide a master report
Removing flashplugin-nonfree ...
dpkg: error processing flashplugin-installer (--purge):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.

Workaround A:

Please open a Terminal from the menu Applications->Accessories->Terminal and type or copy and paste the row below:

sudo apt-get —reinstall install cupsys
sudo dpkg —configure -a
sudo apt-get -f install

give your user password when requested, you don’t see nothing when you type it, then press enter.

Workaround B:

Try the command below to purge the offending packages :

sudo dpkg —purge —force-remove-reinstreq flashplugin-installer flashplugin-nonfree

Then to reinstall :

sudo apt-get install flashplugin-installer

package is already installed and configured

  • Bug : 541595

Conditions of this failure are unknown. Please provide any additional informations in the master report.

Note to triagers: Before marking a report as duplicate, be sure that there is no other error in the log file term.log . In other words, don’t blindly duplicate because the title says ‘already installed and configured’.

dpkg: error processing language-pack-ar (--configure):
 package language-pack-ar is already installed and configured

Workaround A:

Workaround B:

sudo apt-get install —reinstall language-pack-ar

Other issues

Can’t access archive

  • Bug : 523395

The source of this error is not clearly identified and needs further investigation (see comment #3 of the master report)

dpkg: error processing /media/cdrom0//pool/main/g/gcc-4.4/libstdc++6-4.4-dev_4.4.1-4ubuntu8_i386.deb (--unpack):
 cannot access archive: No such file or directory
dpkg: error processing /media/cdrom0//pool/main/g/gcc-4.4/g++-4.4_4.4.1-4ubuntu8_i386.deb (--unpack):
 cannot access archive: No such file or directory

No space left on device

  • Bug 105113 was a request to detect this prior to performing any updates.

  • Bug 312491 was a request to report to the user when running out of disk space.

This error is self-explanatory.

Unpacking replacement perl-base ...
dpkg: error processing /var/cache/apt/archives/perl-base_5.10.0-11.1ubuntu2.2_i386.deb (--unpack):
 failed in buffer_write(fd) (10, ret=-1): backend dpkg-deb during `./usr/lib/perl/5.10.0/IO.pm': No space left on device

Note about localized error message:
Despite the fact that there is no ambiguity regarding the cause of the failure, finding this error in the log is not always easy because the error string has been localized. Checking for the strings —unpack and buffer_write in the error log is a good indication too.

DbDriver «config» is locked

  • Bug 349469

  • Bug 377211

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable

fuser -v will return the locking process if any. Kill it and try performing the upgrade again. Most often, this is only a transient situation and fuser will return nothing. Simply performing the update again should solve this issue.

/var/lib/defoma/locked exists

  • Bug 386763

Under certain circumstances font packages failed to install with the following error:

Setting up ttf-dejavu-extra (2.28-1) ...
E: /var/lib/defoma/locked exists.
E: Another defoma process seems running, or you aren't root.
E: If you are root and defoma process isn't running undoubtedly,
E: it is possible that defoma might have aborted.
E: Please run defoma-reconfigure -f to fix its broken status.
dpkg: error processing ttf-dejavu-extra (--configure):
 subprocess post-installation script returned error exit status 1

Workaround

Open a terminal (Applications -> Accessories -> Terminal ) and run the following command:

$ sudo defoma-reconfigure -f

/etc/defoma/hints/FONTNAME.hints: Unable to open, or empty

  • Bug 521431

Under certain circumstances font packages failed to install with the following error:

Setting up ttf-konatu (24-3) ...
/etc/defoma/hints/ttf-konatu.hints: Unable to open, or empty.
dpkg: error processing ttf-konatu (--configure):
 subprocess installed post-installation script returned error exit status 1

This is due to a corrupted hint file.

Workaround

To workaround it, open a terminal and run the following commands:

$ sudo rm /var/lib/dpkg/info/FONTNAME.prerm
$ sudo apt-get remove --purge FONTNAME
$ sudo apt-get clean

Then try performing the install again. Replace the font file name (FONTNAME) by the font name failing on your system (e.g ttf-dejavu-extra, ttf-konatu, …)

Non-bugs

Common issues arising from hardware failures, common invalid bugs for this category.

Segmentation Fault — Exit status 139

  • Bug 493572

  • Bug 478841

If the installation failed with no reason with an exit status 139, that the configuration script is trivial and there is no other report of this kind for that package, then this is very likely a memory corruption error.

The error from the term.log will show something like this:

Setting up python-dateutil (1.4.1-2) ...
Segmentation fault
dpkg: error processing python-dateutil (--configure):
 subprocess post-installation script returned error exit status 139

There is not much we can do except the advice below:

Thanks for your report.

This looks like a hardware issue. Could you run memtest on your system? (boot a live CD / USB key and select test memory)

The reporter will most of the time says that the test reports error. If so, then close the report.

Note : an exit status 139 can also appear on other scenarios that aren’t related to faulty memory modules. For example, if you install a Hardy guest on a Lenny host using Xen, and then try an apt-get upgrade on the Hardy guest, that will fail with a segfault and an exit status 139 if you forget to disable /lib/tls as advised in the Xen Faq

Other resources

  • Kernel specific errors

  • Debugging Update manager

TODO

  • Add note about localized messages in log file and method to process those reports
  • Search for master reports, complete missing references in wiki and cross-reference report/wiki content
  • Add section ‘How to triage’ and merge the one from DebuggingUpdateManager

  • Add missing descriptions & workaround

  • Add section with common install/upgrade issues for specific packages ? only provide list of report + description ?

CategoryBugSquad CategoryDebugging

I’m a newbie to Linux and Ubuntu, and I’m trying to install a package called libstdc++2.10-glibc2.2 I first use wget

wget http://packages.ubuntu.com/dapper/libstdc++2.10-glibc2.2

It gives me saving to libstdc++2.10-glibc2.2.4 so it adds an extra .4 at the end. Then I do

sudo dpkg -i libstdc++2.10-glibc2.2.4

and it gives me

dpkg-deb: error: `libstdc++2.10-glibc2.2.4' is not a debian format archive
dpkg: error processing libstdc++2.10-glibc2.2.4 (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 libstdc++2.10-glibc2.2.4

What am I doing wrong?

asked Nov 4, 2011 at 11:03

sameold's user avatar

There is no package by the name of libstdc++2.10-glibc2.2. You can check this by going to the URL that you have mentioned in the question: http://packages.ubuntu.com/dapper/libstdc++2.10-glibc2.2.

When you run wget for the above URL, you end up downloading the web page (check the wget command output which states that you are downloading text/html).

If you want to install the C++ compiler and the C++ STL, then just install g++. sudo apt-get install g++.

answered Nov 4, 2011 at 11:22

rigved's user avatar

rigvedrigved

2,3571 gold badge21 silver badges23 bronze badges

In general you should install from the package management system (using the Software Centre or Synaptic or Muon or apt-get etc), instead of downloading deb files this way. Why do you want to install libstdc++2.10-glibc2.2? Are you actually using Ubuntu 6.06 Dapper Drake?

answered Nov 4, 2011 at 11:30

Prateek's user avatar

PrateekPrateek

2,5112 gold badges24 silver badges32 bronze badges

Содержание

  1. Ubuntu Wiki
  2. DebuggingInstallationIssues
  3. Introduction
  4. Known issues
  5. Corrupted package archive
  6. Not a Debian format archive
  7. Corrupted filesystem tarfile
  8. —fsys-tarfile
  9. short read — Input/output error
  10. Exec format error
  11. triggers ci file contains unknown directive syntax
  12. lzma : decoder error
  13. files list file missing final newline / contains empty filename
  14. Inconsistent state
  15. Package in bad inconsistent state
  16. package is already installed and configured
  17. Other issues
  18. Can’t access archive
  19. No space left on device
  20. DbDriver «config» is locked
  21. /var/lib/defoma/locked exists
  22. /etc/defoma/hints/FONTNAME.hints: Unable to open, or empty
  23. Non-bugs
  24. Segmentation Fault — Exit status 139
  25. Other resources

Ubuntu Wiki

DebuggingInstallationIssues

This page is part of the debugging series — pages with debugging details for a variety of Ubuntu packages.

Introduction

This page lists some general issues that users might encounter while performing updates of their system. Apport will usually detect these failures and file a bug in Launchpad. These bugs can be identified by the bug tag ‘apport-package’ and can occur on nearly any package.

There are usually log file attached to the report which differs depending on the kind of install/upgrade:

Package install/upgrade: DpkgTerminalLog

Distribution upgrade: VarLogDistupgradeMain and VarLogDistupgradeApttermlog

Detailed informations about debugging updatemanager can be found at DebuggingUpdateManager.

Documented below are the most commonly reported issues. For each case there is a description and a sample report and when applicable there is a workaround or fix and the master report it should be marked a duplicate of.

Known issues

Corrupted package archive

These errors indicates a corrupted archive (.deb or files on disk) The root cause of the corruption may be a bad network connection, faulty hardware, hardware shutdown.

For those report the common workaround and stock response is:

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that there was an error caused by a corrupted archive. Please execute the following commands, as it will clear your package cache, in a terminal ( Applications -> Accessories -> Terminal ) :

sudo apt-get clean
sudo apt-get update

Then try performing the update again. This will likely resolve your issue. If so please set the bug’s status to Invalid. Thanks in advance!

Not a Debian format archive

This error indicated that the header of the .deb archive is not recognized as a valid debian format.

Corrupted filesystem tarfile

—fsys-tarfile

short read — Input/output error

The ‘short read’ error happens when trying to install a partially downloaded package. The front-end verify the integrity of the archive, but it is not the case if dpkg is invoked directly.

An input/output error is likely to mean filesystem corruption, hardware problems or no space left on hard disk. The typical errors are:

The suggestion is to run a manual fsck and look whether the hard drive or storage device is operating correctly (dmesg may contain helpful information too)

TODO: Write a standard response

Exec format error

This error indicates that the installation or removal script is corrupted. It is caused by a sudden system failure during dpkg operation (power failure, hardware failure, . ) on filesystems supporting delayed allocation (like ext4, xfs, btrfs, . )

Empty files or files filed with garbage are left on the hard drive. The file causing the dpkg error is one of /var/lib/dpkg/info/PACKAGE_NAME.p*

This error can occur either during installation or removal of the package.

During installation of a package

During removal of a package

Workaround A: Finish the install

sudo apt-get clean
sudo aptitude download python-libvirt
sudo dpkg —unpack ./python-libvirt*.deb
sudo dpkg —configure python-libvirt

Workaround B: Remove the package and reinstall

sudo rm /var/lib/dpkg/info/flashplugin-installer.
sudo apt-get remove —purge flashplugin-installer
sudo apt-get clean
sudo apt-get update

Then reinstall the package

Note: Change the package by the one which failed (check the log file)

Note about localized error message:
Finding this error in the log is not always easy because the error string has been localized.

  • Erreur de format pour exec()
  • Error de formato ejecutable
  • Errore di formato di exec
  • Exec format error
  • Formatfel på körbar fil
  • Érvénytelen végrehajtható fájlformátum
  • Exec formátum hiba
  • Verkeerd uitvoerbaar bestand
  • Exec 格式错误

triggers ci file contains unknown directive syntax

This is the same kind of issue than the one above. It means that the trigger file is empty or corrupted. The file is /var/lib/dpkg/info/PACKAGE.triggers This error can occur during installation or removal of a package.

During installation of a package

Workaround

remove the file /var/lib/dpkg/info/PACKAGE.triggers
sudo rm /var/lib/dpkg/info/PACKAGE.triggers
and run
sudo dpkg —purge ureadahead
then clean your cache
sudo apt-get clean
and try performing the install of ureadahead again.

lzma : decoder error

files list file missing final newline / contains empty filename

This error indicates that the file /var/lib/dpkg/info/PACKAGE_NAME.list is corrupted ( empty or full of garbage ) The reason may be a disk error, a memory error, a process being interrupted during unpack, .

Typically these errors take the form :
files list file for package packagename contains empty filename
or
files list file for package packagename is missing final newline

Workaround: Recreate the file list from .deb
This can be fixed, with a little work. If you have the .deb file for the offending package currently available on your system, then check its integrity by running:
dpkg —contents /var/cache/apt/archive/libgnome2-0_2.24.1-0ubuntu3_i386.deb
or get a .deb file by running :
sudo apt-get install —reinstall —download-only libgnome2-0

Once you have a valid .deb file, then you can reconstitute the file. First become root by using sudo -s (enter your administrative user password if necessary), and then use the following command (copy/paste and change the package name accordingly):

Inconsistent state

Package in bad inconsistent state

Workaround A:

Please open a Terminal from the menu Applications->Accessories->Terminal and type or copy and paste the row below:

sudo apt-get —reinstall install cupsys
sudo dpkg —configure -a
sudo apt-get -f install

give your user password when requested, you don’t see nothing when you type it, then press enter.

Workaround B:

Try the command below to purge the offending packages :
sudo dpkg —purge —force-remove-reinstreq flashplugin-installer flashplugin-nonfree

Then to reinstall :
sudo apt-get install flashplugin-installer

package is already installed and configured

Conditions of this failure are unknown. Please provide any additional informations in the master report.

Note to triagers: Before marking a report as duplicate, be sure that there is no other error in the log file term.log . In other words, don’t blindly duplicate because the title says ‘already installed and configured’.

Workaround A:

sudo dpkg —configure -a

Workaround B:

sudo apt-get install —reinstall language-pack-ar

Other issues

Can’t access archive

The source of this error is not clearly identified and needs further investigation (see comment #3 of the master report)

No space left on device

Bug 105113 was a request to detect this prior to performing any updates.

Bug 312491 was a request to report to the user when running out of disk space.

This error is self-explanatory.

Note about localized error message:
Despite the fact that there is no ambiguity regarding the cause of the failure, finding this error in the log is not always easy because the error string has been localized. Checking for the strings —unpack and buffer_write in the error log is a good indication too.

DbDriver «config» is locked

fuser -v will return the locking process if any. Kill it and try performing the upgrade again. Most often, this is only a transient situation and fuser will return nothing. Simply performing the update again should solve this issue.

/var/lib/defoma/locked exists

Under certain circumstances font packages failed to install with the following error:

Workaround

Open a terminal (Applications -> Accessories -> Terminal ) and run the following command:

/etc/defoma/hints/FONTNAME.hints: Unable to open, or empty

Under certain circumstances font packages failed to install with the following error:

This is due to a corrupted hint file.

Workaround

To workaround it, open a terminal and run the following commands:

Then try performing the install again. Replace the font file name (FONTNAME) by the font name failing on your system (e.g ttf-dejavu-extra, ttf-konatu, . )

Non-bugs

Common issues arising from hardware failures, common invalid bugs for this category.

Segmentation Fault — Exit status 139

If the installation failed with no reason with an exit status 139, that the configuration script is trivial and there is no other report of this kind for that package, then this is very likely a memory corruption error.

The error from the term.log will show something like this:

There is not much we can do except the advice below:

Thanks for your report.

This looks like a hardware issue. Could you run memtest on your system? (boot a live CD / USB key and select test memory)

The reporter will most of the time says that the test reports error. If so, then close the report.

Note : an exit status 139 can also appear on other scenarios that aren’t related to faulty memory modules. For example, if you install a Hardy guest on a Lenny host using Xen, and then try an apt-get upgrade on the Hardy guest, that will fail with a segfault and an exit status 139 if you forget to disable /lib/tls as advised in the Xen Faq

Other resources

  • Add note about localized messages in log file and method to process those reports
  • Search for master reports, complete missing references in wiki and cross-reference report/wiki content

Add section ‘How to triage’ and merge the one from DebuggingUpdateManager

Add missing descriptions & workaround

  • Add section with common install/upgrade issues for specific packages ? only provide list of report + description ?
  • DebuggingInstallationIssues (последним исправлял пользователь mail 2014-11-17 18:12:57)

    The material on this wiki is available under a free license, see Copyright / License for details.

    Источник

    • Home
    • Forum
    • The Ubuntu Forum Community
    • Ubuntu Official Flavours Support
    • Installation & Upgrades
    • [ubuntu] dpkg-deb Error is not a debian format archive

    1. dpkg-deb Error is not a debian format archive

      I download some package from several web that claim that the software tested under Ubuntu.
      When I download them, and run dpkg, i receive message like this:

      Code:

      dpkg-deb: error: `AdbeRdr9.5.5-1_i486linux_enu.bin' is not a debian format archive
      dpkg: error processing AdbeRdr9.5.5-1_i486linux_enu.bin (--install):
       subprocess dpkg-deb --control returned error exit status 2
      Errors were encountered while processing:
       AdbeRdr9.5.5-1_i486linux_enu.bin

      That was one of them. Form several package I try to install manually from terminal, only google chrome succeed (uses «dpkg -f …» ).


    2. Re: dpkg-deb Error is not a debian format archive

      This is the reason why, as far as it is possible, you MUST use Ubuntu ‘Repositories’ to download software. Almost everything you need is available through Ubuntu ‘Repositories’. Do do this simply use ‘Software Center’.
      http://www.psychocats.net/ubuntu/installingsoftware

      To be able to download and install certain software, like Adobe/Acrobat Reader you must enable ‘Canonical PARTNERS’ and ‘INDEPENDENT’ Repositories. To do this open ‘Software Center’ -> Edit -> software sources -> other software -> select Canonical Partners and Independent.

      After making the changes, from Terminal [Ctrl+Alt+T] run:
      sudo apt-get update


    3. Re: dpkg-deb Error is not a debian format archive

      Quote Originally Posted by seruling
      View Post

      I download some package from several web that claim that the software tested under Ubuntu.
      When I download them, and run dpkg, i receive message like this:

      Code:

      dpkg-deb: error: `AdbeRdr9.5.5-1_i486linux_enu.bin' is not a debian format archive
      dpkg: error processing AdbeRdr9.5.5-1_i486linux_enu.bin (--install):
       subprocess dpkg-deb --control returned error exit status 2
      Errors were encountered while processing:
       AdbeRdr9.5.5-1_i486linux_enu.bin

      That was one of them. Form several package I try to install manually from terminal, only google chrome succeed (uses «dpkg -f …» ).

      dpkg-deb is for installing .deb files (not .bin files).

      And like the other poster said: install Adobe Reader via the Ubuntu Software Center.


    4. Re: dpkg-deb Error is not a debian format archive

      Thank you for replying.

      But I still confuse about installing 3rd party software.
      Currently, the company where I work using an accounting software that work under Windows.
      My company plans to migrate to Ubuntu. Some divisions already migrated, except accounting division.
      We already have a lot of data already with that software (under windows).
      They provide linux version of that accounting software. I still try to install that accounting software under Ubuntu with no luck.
      here is the link: http://deluxeaccounting.com/index.ph…pper&Itemid=57


    5. Re: dpkg-deb Error is not a debian format archive

      We could help you installing the software from http://deluxeaccounting.com/index.ph…pper&Itemid=57 , but first a few questions:

      Shouldn’t the IT department take care of installing that software? Based on your post, I have the idea you’re not the IT guy.
      If that accounting software needs to be installed, why are you trying to install Adobe Reader?


    6. Re: dpkg-deb Error is not a debian format archive

      About adobe reader thing,
      I often receive pdf files from email. A lot of them are scaned document and converted to pdf.
      The problem is when I need view a landscape paper, current ubuntu pdf viewer can’t rotate the view. That’s why i want to install adobe pdf reader


    7. Re: dpkg-deb Error is not a debian format archive

      Ah. So: you want to install Adobe Reader. Did you follow the advice from @fantab? Then search for «acroread» and install it

      Or, if you like command line more:

      Code:

      sudo add-apt-repository "deb http://archive.canonical.com/ precise partner"
      sudo apt-get update
      sudo apt-get install acroread

      Last edited by sanderj; May 31st, 2013 at 09:02 AM.


    8. Re: dpkg-deb Error is not a debian format archive

      So … that worked for you?


    9. Re: dpkg-deb Error is not a debian format archive

      Thank you,
      I did the sudo add-apt-repository «deb http://archive.canonical.com/ precise partner» and now can install acrobat reader.
      Rotate view works fine.


    Bookmarks

    Bookmarks


    Posting Permissions

    The following apparently trivial two initial steps to install mod-pagespeed resulted in the error,

    'mod-pagespeed-stable_current_amd64.deb' is not a debian format archive
    

    even though the first (wget) step appeared to work properly.

    wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
    sudo dpkg -i mod-pagespeed-*.deb
    

    What might be going wrong and how to fix that?

    asked Aug 11, 2014 at 20:28

    Nick Rice's user avatar

    1

    In my case the .deb file was much smaller than expected and its content indicated that «this product is not available in your country,» even though the server was meant to be in the UK, and https://www.countryipblocks.net/ agreed that it was in the UK. (http://whatismyipaddress.com/ip-lookup said it was in the US.)

    The solution was simply to go to the Google download page for the module, https://developers.google.com/speed/pagespeed/module/download, do a local download (eg right click the appropriate link and do «Save link as …» in Firefox), and then upload that to the server.

    It then built fine.

    (I found this solution in a comment about a different problem at http://www.turnkeylinux.org/forum/support/20120514/how-do-i-install-modpagespeed, which speculated that «server’s IP was somehow mistraced by Google to some weird country or something» — could this be the underlying cause?)

    Edit: Possible gotcha: Later problems with apt-get update with a GPG error (fatal) with the mod-pagespeed installation being the very smoky gun. It was a mess to sort out.

    answered Aug 11, 2014 at 20:28

    Nick Rice's user avatar

    Nick RiceNick Rice

    1,1331 gold badge13 silver badges21 bronze badges

    Установка пакета

    Автор incognito15, 08 мая 2015, 09:49:23

    « назад — далее »

    0 Пользователи и 1 гость просматривают эту тему.

    Пытаюсь установить пакет  python-support_1.0.10_all.deb, получаю в ответ следующее. Что делать что-то не пойму?

    # dpkg -i python-support_1.0.10_all.deb
    dpkg-deb: `python-support_1.0.10_all.deb' is not a debian format archive
    dpkg: error processing python-support_1.0.10_all.deb (--install):
    subprocess dpkg-deb --control returned error exit status 2
    Errors were encountered while processing:
    python-support_1.0.10_all.deb

    P.S. в Debian новичок


    Установите так:

    apt-get update ; apt-get install python-support -y


    куча 407 ошибок и

    E: Some index files failed to download, they have been ignored, or old ones used instead.
    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:
    ntlmaps : Depends: python but it is not going to be installed
    python-support : Depends: python (>= 2.5) but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

    P.S. на этой машине нет интернета, потому и ставлю из пакета


    incognito15, пакет у Вас битый. Может не до конца скачался.


    ок, как скачать полностью и проверить его целостность?





    Выберите нужную версию пакета для вашего дистрибутива, посмотрите зависимости, скачайте всё необходимое и ставьте вместе с зависимостями.


    Сообщение объединено: 08 Май 2015, 15:18:29


    все скачанные файлы .deb сложите в [папку]
    далее в консоли с правами рута

    cd [путь_к_папке]; dpkg -i *.deb


    Цитата: Leo от 08 мая 2015, 15:15:45все скачанные файлы .deb сложите в [папку]

    Цитата: Leo от 08 мая 2015, 15:15:45cd [путь_к_папке]; dpkg -i *.deb

    В качестве аргумента для dpkg передастся только первый по алфавиту пакет. Ему нужен только питон, питон-минимал и дпкг. Питон то стоит? Если не стоит, то зачем тогда python-support? А если стоит, то достаточно скачать один пакет. Но так, на будущее, лучше поставить сначала пакеты, чьи зависимости уже удовлетворены установленными в системе пакетами, или не имеют зависимостей вовсе. А потом остальные, вручную.

    Если скопом нужно поставить пакеты, чьи зависимости уже удовлетворены, то можно воспользоваться следующей командой (из под рута, в папке с пакетами):

    for var in $(ls *.deb); do dpkg -i $var; done
    Пакеты тоже будут ставиться в алфавитном порядке. Если зависимости их не были удовлетворены, или в списке есть нужный для установки другого пакет, но его имя по порядку дальше, то ничего не получится. Проще опять же будет руками поставить.


    Цитата: sandaksatru от 09 мая 2015, 16:47:11Если скопом нужно поставить пакеты, чьи зависимости уже удовлетворены, то можно воспользоваться следующей командой

    Да ну?
    А я скажу что даже вот так всё нормально установится:

    dpkg -i [путь_к_папке]/*
    А вы продолжайте писать скрипты на каждый чих.


    • Русскоязычное сообщество Debian GNU/Linux


    • Общие вопросы

    • Установка пакета

    Содержание

    1. dpkg: error: cannot access archive ‘libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb’: No such file or directory #1359
    2. Comments
    3. InTheNight1 commented May 31, 2019
    4. Empire Version
    5. OS Information (Linux flavor, Python version)
    6. Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
    7. Screenshot of error, embedded text output, or Pastebin link to the error
    8. Any additional information
    9. Ubuntu Wiki
    10. DebuggingInstallationIssues
    11. Introduction
    12. Known issues
    13. Corrupted package archive
    14. Not a Debian format archive
    15. Corrupted filesystem tarfile
    16. —fsys-tarfile
    17. short read — Input/output error
    18. Exec format error
    19. triggers ci file contains unknown directive syntax
    20. lzma : decoder error
    21. files list file missing final newline / contains empty filename
    22. Inconsistent state
    23. Package in bad inconsistent state
    24. package is already installed and configured
    25. Other issues
    26. Can’t access archive
    27. No space left on device
    28. DbDriver «config» is locked
    29. /var/lib/defoma/locked exists
    30. /etc/defoma/hints/FONTNAME.hints: Unable to open, or empty
    31. Non-bugs
    32. Segmentation Fault — Exit status 139
    33. Other resources
    34. помощь новичку

    dpkg: error: cannot access archive ‘libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb’: No such file or directory #1359

    Empire Version

    2.3.0 (from dev branch)

    OS Information (Linux flavor, Python version)

    Kali 2019.1 (Rolling)

    Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.

    Expected successful installation. Error: dpkg: error: cannot access archive ‘libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb’: No such file or directory

    1. git clone [URL link from main page]
    2. Navigated to setup folder, and ./install.sh
    3. Received error message: dpkg: error: cannot access archive ‘libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb’: No such file or directory
    4. pip install —force-reinstall pip==18.1
    5. edited /setup/install.sh. Commented out all lines of pip install —upgrade pip
    6. Tried to reinstall with ./install.sh . Same error message
    7. sudo rm -rf Empire in opt folder where Empire was installed.
    8. Migrated over to dev branch, git clone [URL link from dev branch]
    9. Navigated to setup folder, and ./install.sh
    10. Received error message again.

    So whether I install from the master or dev branches, I get the same error message.

    Screenshot of error, embedded text output, or Pastebin link to the error

    dpkg: error: cannot access archive ‘libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb’: No such file or directory

    Any additional information

    I saw another question related to this error here, but was unable to get it resolved using the suggestions there.

    Also, this is my very first time on github, so I apologize in advance for misinformation, etc.

    The text was updated successfully, but these errors were encountered:

    Источник

    Ubuntu Wiki

    DebuggingInstallationIssues

    This page is part of the debugging series — pages with debugging details for a variety of Ubuntu packages.

    Introduction

    This page lists some general issues that users might encounter while performing updates of their system. Apport will usually detect these failures and file a bug in Launchpad. These bugs can be identified by the bug tag ‘apport-package’ and can occur on nearly any package.

    There are usually log file attached to the report which differs depending on the kind of install/upgrade:

    Package install/upgrade: DpkgTerminalLog

    Distribution upgrade: VarLogDistupgradeMain and VarLogDistupgradeApttermlog

    Detailed informations about debugging updatemanager can be found at DebuggingUpdateManager.

    Documented below are the most commonly reported issues. For each case there is a description and a sample report and when applicable there is a workaround or fix and the master report it should be marked a duplicate of.

    Known issues

    Corrupted package archive

    These errors indicates a corrupted archive (.deb or files on disk) The root cause of the corruption may be a bad network connection, faulty hardware, hardware shutdown.

    For those report the common workaround and stock response is:

    Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that there was an error caused by a corrupted archive. Please execute the following commands, as it will clear your package cache, in a terminal ( Applications -> Accessories -> Terminal ) :

    sudo apt-get clean
    sudo apt-get update

    Then try performing the update again. This will likely resolve your issue. If so please set the bug’s status to Invalid. Thanks in advance!

    Not a Debian format archive

    This error indicated that the header of the .deb archive is not recognized as a valid debian format.

    Corrupted filesystem tarfile

    —fsys-tarfile

    short read — Input/output error

    The ‘short read’ error happens when trying to install a partially downloaded package. The front-end verify the integrity of the archive, but it is not the case if dpkg is invoked directly.

    An input/output error is likely to mean filesystem corruption, hardware problems or no space left on hard disk. The typical errors are:

    The suggestion is to run a manual fsck and look whether the hard drive or storage device is operating correctly (dmesg may contain helpful information too)

    TODO: Write a standard response

    Exec format error

    This error indicates that the installation or removal script is corrupted. It is caused by a sudden system failure during dpkg operation (power failure, hardware failure, . ) on filesystems supporting delayed allocation (like ext4, xfs, btrfs, . )

    Empty files or files filed with garbage are left on the hard drive. The file causing the dpkg error is one of /var/lib/dpkg/info/PACKAGE_NAME.p*

    This error can occur either during installation or removal of the package.

    During installation of a package

    During removal of a package

    Workaround A: Finish the install

    sudo apt-get clean
    sudo aptitude download python-libvirt
    sudo dpkg —unpack ./python-libvirt*.deb
    sudo dpkg —configure python-libvirt

    Workaround B: Remove the package and reinstall

    sudo rm /var/lib/dpkg/info/flashplugin-installer.
    sudo apt-get remove —purge flashplugin-installer
    sudo apt-get clean
    sudo apt-get update

    Then reinstall the package

    Note: Change the package by the one which failed (check the log file)

    Note about localized error message:
    Finding this error in the log is not always easy because the error string has been localized.

    • Erreur de format pour exec()
    • Error de formato ejecutable
    • Errore di formato di exec
    • Exec format error
    • Formatfel på körbar fil
    • Érvénytelen végrehajtható fájlformátum
    • Exec formátum hiba
    • Verkeerd uitvoerbaar bestand
    • Exec 格式错误

    triggers ci file contains unknown directive syntax

    This is the same kind of issue than the one above. It means that the trigger file is empty or corrupted. The file is /var/lib/dpkg/info/PACKAGE.triggers This error can occur during installation or removal of a package.

    During installation of a package

    Workaround

    remove the file /var/lib/dpkg/info/PACKAGE.triggers
    sudo rm /var/lib/dpkg/info/PACKAGE.triggers
    and run
    sudo dpkg —purge ureadahead
    then clean your cache
    sudo apt-get clean
    and try performing the install of ureadahead again.

    lzma : decoder error

    files list file missing final newline / contains empty filename

    This error indicates that the file /var/lib/dpkg/info/PACKAGE_NAME.list is corrupted ( empty or full of garbage ) The reason may be a disk error, a memory error, a process being interrupted during unpack, .

    Typically these errors take the form :
    files list file for package packagename contains empty filename
    or
    files list file for package packagename is missing final newline

    Workaround: Recreate the file list from .deb
    This can be fixed, with a little work. If you have the .deb file for the offending package currently available on your system, then check its integrity by running:
    dpkg —contents /var/cache/apt/archive/libgnome2-0_2.24.1-0ubuntu3_i386.deb
    or get a .deb file by running :
    sudo apt-get install —reinstall —download-only libgnome2-0

    Once you have a valid .deb file, then you can reconstitute the file. First become root by using sudo -s (enter your administrative user password if necessary), and then use the following command (copy/paste and change the package name accordingly):

    Inconsistent state

    Package in bad inconsistent state

    Workaround A:

    Please open a Terminal from the menu Applications->Accessories->Terminal and type or copy and paste the row below:

    sudo apt-get —reinstall install cupsys
    sudo dpkg —configure -a
    sudo apt-get -f install

    give your user password when requested, you don’t see nothing when you type it, then press enter.

    Workaround B:

    Try the command below to purge the offending packages :
    sudo dpkg —purge —force-remove-reinstreq flashplugin-installer flashplugin-nonfree

    Then to reinstall :
    sudo apt-get install flashplugin-installer

    package is already installed and configured

    Conditions of this failure are unknown. Please provide any additional informations in the master report.

    Note to triagers: Before marking a report as duplicate, be sure that there is no other error in the log file term.log . In other words, don’t blindly duplicate because the title says ‘already installed and configured’.

    Workaround A:

    sudo dpkg —configure -a

    Workaround B:

    sudo apt-get install —reinstall language-pack-ar

    Other issues

    Can’t access archive

    The source of this error is not clearly identified and needs further investigation (see comment #3 of the master report)

    No space left on device

    Bug 105113 was a request to detect this prior to performing any updates.

    Bug 312491 was a request to report to the user when running out of disk space.

    This error is self-explanatory.

    Note about localized error message:
    Despite the fact that there is no ambiguity regarding the cause of the failure, finding this error in the log is not always easy because the error string has been localized. Checking for the strings —unpack and buffer_write in the error log is a good indication too.

    DbDriver «config» is locked

    fuser -v will return the locking process if any. Kill it and try performing the upgrade again. Most often, this is only a transient situation and fuser will return nothing. Simply performing the update again should solve this issue.

    /var/lib/defoma/locked exists

    Under certain circumstances font packages failed to install with the following error:

    Workaround

    Open a terminal (Applications -> Accessories -> Terminal ) and run the following command:

    /etc/defoma/hints/FONTNAME.hints: Unable to open, or empty

    Under certain circumstances font packages failed to install with the following error:

    This is due to a corrupted hint file.

    Workaround

    To workaround it, open a terminal and run the following commands:

    Then try performing the install again. Replace the font file name (FONTNAME) by the font name failing on your system (e.g ttf-dejavu-extra, ttf-konatu, . )

    Non-bugs

    Common issues arising from hardware failures, common invalid bugs for this category.

    Segmentation Fault — Exit status 139

    If the installation failed with no reason with an exit status 139, that the configuration script is trivial and there is no other report of this kind for that package, then this is very likely a memory corruption error.

    The error from the term.log will show something like this:

    There is not much we can do except the advice below:

    Thanks for your report.

    This looks like a hardware issue. Could you run memtest on your system? (boot a live CD / USB key and select test memory)

    The reporter will most of the time says that the test reports error. If so, then close the report.

    Note : an exit status 139 can also appear on other scenarios that aren’t related to faulty memory modules. For example, if you install a Hardy guest on a Lenny host using Xen, and then try an apt-get upgrade on the Hardy guest, that will fail with a segfault and an exit status 139 if you forget to disable /lib/tls as advised in the Xen Faq

    Other resources

    • Add note about localized messages in log file and method to process those reports
    • Search for master reports, complete missing references in wiki and cross-reference report/wiki content

    Add section ‘How to triage’ and merge the one from DebuggingUpdateManager

    Add missing descriptions & workaround

  • Add section with common install/upgrade issues for specific packages ? only provide list of report + description ?
  • DebuggingInstallationIssues (последним исправлял пользователь mail 2014-11-17 18:12:57)

    The material on this wiki is available under a free license, see Copyright / License for details.

    Источник

    помощь новичку

    Закончил установку debian. Ща буду ставить по,настраивать ос под себя) и первый вопрос что тут по архивам,архиваторам и т.д?

    пакет engrampa поставь, будет тебе гуй к архиваторам разным.

    Все наиболее распространенные (xz, tar, bz2) и множество менее популярных (например zip) поддерживаются из коробки, а вот с маргинальными 7z и rar все не так радужно. Для 7z нужен p7zip, для rar — unrar (доступна только распаковка).

    ок второй вопрос как сделать мигающий курсор в терминале?

    В GNOME, что стоит у тебя, уже включен архиватор.

    какой софт посоветуете поставить? как ставить filezilla что-нибудь для python(ide)

    В xfce4-terminal, что ты используешь, в настройках есть опция «Мигающий курсор».

    какой софт посоветуете?

    вряд ли новичек установил только одну базовую часть системы — наверняка засадил готовое решениев виде DE, а в любом готовом решении этого говна видимо не видимо — и архиваторы и терминалы и фреезила, кроме того в готовом решении есть гуишный apt — специально для тех кто в танке.

    geany в качестве IDE для python годна.

    что такое luakit

    браузер на базе webkit с поддержкой управления только с помощью клавиатуры

    Закончил установку debian. Ща буду ставить по,настраивать ос под себя

    Можешь перед пацанами похвастаться теперь. Че сказать то хотел?

    проблем с ними можно считать, что никаких нет

    Скачать deb, установить через dpkg -i пакет. Если ругается на зависимости — apt-get install -f

    Понадёргал из своей истории и сделал скрипт:

    Обновляться можешь так:

    Это команды установки софта, для тупых.

    Ubuntu/Debian package на их сайте

    можешь написать подробно пж

    На их сайте выбери скачать, там выбери нужную тебе редакцию. Потом будет 3 ссылки, там нажми Ubuntu/debian. Скачается файл. Открой терминал в папке с файлом. (ПКМ->открыть в терминале). Выполни sudo dpkg -i файл. (Можешь начать набирать и нажать tab — сработает автодополнение). Потом если будет матерится на зависимости — sudo apt-get install -f

    Источник

    Понравилась статья? Поделить с друзьями:
  • Is mf02 5 ошибка gta v
  • Is forbidden error looking up service account
  • Is fc05 fortnite ошибка установки
  • Is either not designed to run on windows or it contains an error
  • Is done dll ошибка как исправить при установке код ошибки 12