Dpkg deb error is not a debian format archive

I'm new at Linux, so the following question may sound trivial. At the moment I want to install a .deb file, specifically the Cuda Toolbox 8.0, and it uses a .deb file. However, when I use the comma...

I’m new at Linux, so the following question may sound trivial. At the moment I want to install a .deb file, specifically the Cuda Toolbox 8.0, and it uses a .deb file. However, when I use the command

$ sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb

I obtain the following log:

dpkg-deb: error: 'cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb.deb' is not a debian format archive
dpkg: error processing archive cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb.deb

The solution looks quite trivial, since it is a standard procedure to install .deb packages and it is written in the nVidia tutorial. But I’m not able to do it. Any help would be appreciated.

ankit7540's user avatar

ankit7540

4,1051 gold badge24 silver badges41 bronze badges

asked Mar 25, 2017 at 19:25

Bruno Peixoto's user avatar

5

This error happens when your deb file is broken. Check if you have downloaded properly (use md5 or sha checksum).

I just had this error when I was trying to install a deb file when its download wasn’t finished yet.

$ sudo dpkg -i rocketchat_2.9.0_amd64.deb 
dpkg-deb: error: 'rocketchat_2.9.0_amd64.deb' is not a debian format archive
dpkg: error processing archive rocketchat_2.9.0_amd64.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 rocketchat_2.9.0_amd64.deb

answered Dec 26, 2017 at 5:47

sajjadG's user avatar

sajjadGsajjadG

5975 silver badges12 bronze badges

  • 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

Problem encountered on https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-current
Operating System: Linux Ubuntu 18.04 — x64

Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Details

Hi, I’m installing .NET Core 3 on Ubuntu running on WSL 2 (Standard Microsoft Ubuntu app from the marketplace), getting an error.

Following the procedure I download this file:

wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

Then I get the following when installing it:

pomatti@NT-03024:/tmp$ sudo dpkg -i packages-microsoft-prod.deb
dpkg-deb: error: 'packages-microsoft-prod.deb' is not a Debian format archive
dpkg: error processing archive packages-microsoft-prod.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 packages-microsoft-prod.deb

My Ubuntu version (fully updated):

pomatti@NT-03024:/tmp$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

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


User avatar

levlaz

Posts: 179
Joined: 2012-09-27 12:06
Location: San Francisco, CA

Re: «.deb» package is not a .deb package?

#2

Post

by levlaz » 2013-09-28 21:48

Hey,

I had a hunch about the solution to this and it seems to work.

From the little I know about package management, debian does not like «-» ater the name of the package, instead it wants an underscore. «_»

the way I got this package to work is the following. (I am using Sid, but this should work in stable and testing as well)

1) Download the file
2) open a terminal
3) Rename the file

Code: Select all

mv ted-2.23-amd64.deb ted_2.23-amd64.deb

4) dpkg as a superuser

5) It told me I was missing a dependency, so install anything that is says is missing.

6) This will isntall in /usr/bin/Ted (note the capital T)

7) You can run this application by typing into a terminal:



User avatar

levlaz

Posts: 179
Joined: 2012-09-27 12:06
Location: San Francisco, CA

Re: «.deb» package is not a .deb package?

#4

Post

by levlaz » 2013-09-29 23:32

Did you get this to work?

If so, please mark this forum as solved.

Also — you could email the people at Ted and ask them to change the filename since that’s pretty much the only issue.




I run following command to install mysql server

dpkg -i mysql-apt-config_0.8.14-1_all.deb

and get this error:

strong textdpkg-deb: error: 'mysql-apt-config_0.8.14-1_all.deb' is not a Debian format archive
dpkg: error processing archive mysql-apt-config_0.8.14-1_all.deb (--install):
dpkg-deb --control subprocess returned error exit status 2 Errors were encountered while processing: mysql-apt-config_0.8.14-1_all.deb

asked Oct 5, 2020 at 17:43

Darwin's user avatar

Be sure that downloaded file is mysql with true format.
My client does not have permission to access Mysql website from oracle in my country.
When i download mysql-apt-config_0.8.14-1_all.deb with

 wget http://repo.mysql.com/mysql-apt-config_0.8.14-1_all.deb

a HTML page Error downloaded… .
You should use a proxy or VPN for downloading. I downloaded mysql-apt-config_0.8.14-1_all.deb with Tor browser and uploaded it on server.

answered Oct 5, 2020 at 17:43

Darwin's user avatar

DarwinDarwin

1,5451 gold badge16 silver badges27 bronze badges

1

Содержание

  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
  26. package libavutil55 7:3.4.2-2 failed to install/upgrade: dpkg-deb —fsys-tarfile subprocess returned error exit status 2
  27. Bug Description

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.

    Источник

    package libavutil55 7:3.4.2-2 failed to install/upgrade: dpkg-deb —fsys-tarfile subprocess returned error exit status 2

    Affects Status Importance Assigned to Milestone
    ffmpeg (Ubuntu)

    Bug Description

    package libavutil55 7:3.4.2-2 failed to install/upgrade: dpkg-deb —fsys-tarfile subprocess returned error exit status 2

    ProblemType: Package
    DistroRelease: Ubuntu 18.04
    Package: libavutil55 7:3.4.2-2
    ProcVersionSign ature: Ubuntu 4.15.0- 32.35-generic 4.15.18
    Uname: Linux 4.15.0-32-generic x86_64
    ApportVersion: 2.20.9-0ubuntu7.2
    AptOrdering:
    libavutil55:amd64: Install
    NULL: ConfigurePending
    Architecture: amd64
    Date: Fri Aug 24 09:47:25 2018
    DpkgTerminalLog:
    Preparing to unpack . /libavutil55 _7%3a3. 4.4-0ubuntu0. 18.04.1_ amd64.deb .
    Unpacking libavutil55:amd64 (7:3.4. 4-0ubuntu0. 18.04.1) over (7:3.4.2-2) .
    dpkg-deb: error: failed to read archive ‘/var/cache/ apt/archives/ libavutil55_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb’ : No such file or directory
    dpkg: error processing archive /var/cache/ apt/archives/ libavutil55_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb (—unpack):
    dpkg-deb —fsys-tarfile subprocess returned error exit status 2
    DuplicateSignature:
    package: libavutil55: 7:3.4.2- 2
    Unpacking libavutil55:amd64 (7:3.4. 4-0ubuntu0. 18.04.1) over (7:3.4.2-2) .
    dpkg-deb: error: failed to read archive ‘/var/cache/ apt/archives/ libavutil55_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb’ : No such file or directory
    dpkg: error processing archive /var/cache/ apt/archives/ libavutil55_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb (—unpack):
    dpkg-deb —fsys-tarfile subprocess returned error exit status 2
    ErrorMessage: dpkg-deb —fsys-tarfile subprocess returned error exit status 2
    InstallationDate: Installed on 2018-05-07 (108 days ago)
    InstallationMedia: Ubuntu 18.04 LTS «Bionic Beaver» — Release amd64 (20180426)
    Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
    PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15

    rc1-1
    RelatedPackageV ersions:
    dpkg 1.19.0.5ubuntu2
    apt 1.6.3ubuntu0.1
    SourcePackage: ffmpeg
    Title: package libavutil55 7:3.4.2-2 failed to install/upgrade: dpkg-deb —fsys-tarfile subprocess returned error exit status 2
    UpgradeStatus: No upgrade log present (probably fresh install)

    • Dependencies.txtEdit (1.0 KiB, text/plain; charset=»utf-8″)
    • Df.txtEdit (2.4 KiB, text/plain; charset=»utf-8″)
    • Dmesg.txtEdit (60.5 KiB, text/plain; charset=»utf-8″)
    • DpkgHistoryLog.txtEdit (9.9 KiB, text/plain; charset=»utf-8″)
    • ProcCpuinfoMinimal.txtEdit (1.1 KiB, text/plain; charset=»utf-8″)
    tags: removed: need-duplicate-check

    Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that there was an error on your system when trying to install a particular package. Please execute the following command, as it will clear your package cache, in a terminal:

    sudo apt-get clean

    Then try performing the update again. This will likely resolve your issue, but the failure could be caused by filesystem or memory corruption. So please also run a fsck on your filesystem(s) and a memory test. Thanks in advance!

    [This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

    tags: added: fsys-tarfile-error
    Changed in ffmpeg (Ubuntu):
    status: New → Invalid

    I’m getting the same error as Vijayan, when I run «sudo apt —fix-broken install» command.
    Below is the error log.

    Reading package lists. Done
    Building dependency tree
    Reading state information. Done
    Correcting dependencies. Done
    The following additional packages will be installed:
    libavutil55 libswresample2
    The following NEW packages will be installed:
    libavutil55 libswresample2
    0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
    6 not fully installed or removed.
    Need to get 0 B/245 kB of archives.
    After this operation, 765 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    E: Invalid archive signature
    E: Internal error, could not locate member control. tar.
    E: Prior errors apply to /var/cache/ apt/archives/ libavutil55_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb
    E: Invalid archive signature
    E: Internal error, could not locate member control. tar.
    E: Prior errors apply to /var/cache/ apt/archives/ libswresample2_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb
    debconf: apt-extracttemp lates failed: No such file or directory
    dpkg-deb: error: ‘/var/cache/ apt/archives/ libavutil55_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb’ is not a Debian format archive
    dpkg: error processing archive /var/cache/ apt/archives/ libavutil55_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb (—unpack):
    dpkg-deb —control subprocess returned error exit status 2
    dpkg-deb: error: ‘/var/cache/ apt/archives/ libswresample2_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb’ is not a Debian format archive
    dpkg: error processing archive /var/cache/ apt/archives/ libswresample2_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb (—unpack):
    dpkg-deb —control subprocess returned error exit status 2
    Errors were encountered while processing:
    /var/cache/ apt/archives/ libavutil55_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb
    /var/cache/ apt/archives/ libswresample2_ 7%3a3.4. 4-0ubuntu0. 18.04.1_ amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I tried uninstalling whole gstreamer by using
    «sudo apt-get purge gstreamer1.0-alsa gstreamer1. 0-plugins- base-apps gstreamer1. 0-clutter- 3.0 gstreamer1. 0-plugins- good gstreamer1. 0-fluendo- mp3 gstreamer1. 0-plugins- ugly gstreamer1.0-gl gstreamer1. 0-pulseaudio gstreamer1.0-libav gstreamer1.0-tools gstreamer1. 0-packagekit gstreamer1.0-vaapi gstreamer1. 0-plugins- base gstreamer1.0-x»

    I also tried uninstall all libraries related to gstreamer with
    «libavcodec57, libavcodec-extra57, libavfilter6, libavfilter-extra6, libavformat57, libavutil55, libavcodec57, libavcodec-extra57, libavutil55»

    but still getting dependency error and it’s asking to run «apt —fix-broken install».
    I wanted to install «anbox», which in turn reqire dkms-dev to be installed. But I’m getting dependency error as shown below.
    Log:

    sudo apt-get install dpkg-dev
    Reading package lists. Done
    Building dependency tree
    Reading state information. Done
    You might want to run ‘apt —fix-broken install’ to correct these.
    The following packages have unmet dependencies:
    gstreamer1.0-libav : Depends: libavcodec57 (>= 7:3.4.2) but it is not going to be installed or
    libavcodec- extra57 (>= 7:3.4.2) but it is not going to be installed
    Depends: libavfilter6 (>= 7:3.4.2) but it is not going to be installed or
    libavfilter- extra6 (>= 7:3.4.2) but it is not going to be installed
    Depends: libavformat57 (>= 7:3.4.2) but it is not going to be installed
    Depends: libavutil55 (>= 7:3.4.2) but it is not going to be installed
    libchromaprint1 : Depends: libavcodec57 (>= 7:3.4.1) but it is not going to be installed or
    libavcodec- extra57 (>= 7:3.4.1) but it is not going to be installed
    Depends: libavutil55 (>= 7:3.4.1) but it is not going to be installed
    E: Unmet dependencies. Try ‘apt —fix-broken install’ with no packages (or specify a solution).

    Источник

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

    Автор 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]   Вниз

    Тема: Ubuntu 20.04.1 и Canon LBP6020  (Прочитано 3471 раз)

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

    Оффлайн
    Eldignis

    Имеется Canon LBP 6020

    Производится установка драйверов с помощью известного скрипта:
    https://help.ubuntu.ru/wiki/canon_capt

    При этом на системах:
    Ubuntu 18.04, Linux Mint 19.3, Linux Mint 20 — все работает без проблем (единственный недостаток в LM 20 не создаётся ярлык на рабочем столе утилиты capstatusui, но это мелочи).

    На Ubuntu 20.04 драйвера устанавливаются, принтер регистрируется, но при отправке на печать, печати не происходит.

    Куда копать — подскажите.

    « Последнее редактирование: 04 Октября 2020, 16:19:44 от Eldignis »


    Оффлайн
    Сергий

    Ситуация аналогичная только устанавливаю LBP3250. Уже не первый год пользуюсь этой wiki страничкой (при переустановки системы, железо не менялось) всегда всё проходило гладко.

    Сегодня скрипт выдал:
    Установка общего модуля для драйвера CUPS
    dpkg-deb: ошибка: ‘cndrvcups-common_3.21-1_amd64.deb’ is not a Debian format archive
    dpkg: ошибка при обработке архива cndrvcups-common_3.21-1_amd64.deb (—install):
     dpkg-deb —control subprocess returned error exit status 2
    При обработке следующих пакетов произошли ошибки:
     cndrvcups-common_3.21-1_amd64.deb
    Ошибка при установке пакета cndrvcups-common_3.21-1_amd64.deb
    Нажмите любую клавишу для выхода

    На file cndrvcups-common_3.21-1_amd64.deb ответ:
    cndrvcups-common_3.21-1_amd64.deb: HTML document, ASCII text, with very long lines

    Возможно проблема с wiki-страничкой(скриптом) или Ubunta уже не-та?


    Оффлайн
    Пользователь

    cndrvcups-common_3.21-1_amd64.deb: HTML document, ASCII text, with very long lines

    На официальном сайте последняя версия драйвера 2,71, похоже скрипт пытается скачать несуществующий файл.

    Нужно ждать обновления скрипта или устанавливать драйвер вручную (танцы с бубном).

    « Последнее редактирование: 21 Апреля 2021, 15:59:08 от Пользователь »


    Оффлайн
    Сергий

    скрипт удачно скачивает 2 пакет:
    cndrvcups-capt_2.71-1_amd64.deb
    cndrvcups-common_3.21-1_amd64.deb

    они оба существуют, но на последний жалуется (возможно битый)


    Оффлайн
    Пользователь


    Оффлайн
    Сергий

    Спасибо. Сразу не догадался.
    (Заменить битые пакеты пришедшие со скриптом на оригинальные с официального сайт)
    Совсем расслабился :)


    • Печать

    Страницы: [1]   Вверх

    Понравилась статья? Поделить с друзьями:

    Читайте также:

  • Dpd как изменить дату доставки
  • Dpd как изменить адрес доставки на пункт выдачи
  • Dpd доставка как изменить адрес доставки
  • Dpc watchdog синий экран violation как исправить
  • Dpc watchdog violation ошибка синий экран

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии