Сообщение об ошибке No such file or directory
означает, что .deb
Файл не существует или не существует в текущем каталоге.
~
между :
а также $
в приглашении представляет текущий рабочий каталог. ~
(когда следующий символ /
или, как в этом случае, ничего) является сокращением для вашего домашнего каталога, /home/collins
,
Вы сказали, что загрузили .deb
файл «в загружаемых файлах». Предполагая, что это означает, что вы загрузили его в свой Downloads
папка, это означает, что он находится в /home/collins/Downloads
скорее, чем /home/collins
,
Таким образом, вы сможете установить его, выполнив следующую команду:
sudo dpkg -i ~/Downloads/wineqq2012-20120719-longene.deb
Если это не сработает, попробуйте набрать
sudo dpkg -i
без нажатия Enter. Добавьте пробел в конец. Затем перетащите файл из Nautilus (файловый браузер) в окно терминала. Это вставит его полный путь. Затем нажмите Enter.
I have download the QQ2012’s deb in downlaod files, but when I install the deb, system tell me:
$ sudo dpkg -i wineqq2012-20120719-longene.deb
[sudo] password for collins:
dpkg: error processing wineqq2012-20120719-longene.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
wineqq2012-20120719-longene.deb
abu_bua
10.4k10 gold badges42 silver badges62 bronze badges
asked Dec 22, 2012 at 8:17
1
The error message No such file or directory
means that the .deb
file does not exist, or does not exist in the current directory.
The ~
between :
and $
in the prompt represents the current working directory. ~
(when the next character is a /
or, as in this case, nothing at all) is shorthand for your home directory, /home/collins
.
You said you downloaded the .deb
file «in download files.» Assuming this means you downloaded it to your Downloads
folder, that means it’s located in /home/collins/Downloads
rather than /home/collins
.
So you should be able to install it by running this command:
sudo dpkg -i ~/Downloads/wineqq2012-20120719-longene.deb
If that doesn’t work, try typing
sudo dpkg -i
without pressing Enter. Add a space to the end. Then drag the file from Nautilus (the file browser) into the Terminal window. That will paste its full path. Then press Enter.
answered Dec 22, 2012 at 8:50
Eliah KaganEliah Kagan
116k54 gold badges313 silver badges488 bronze badges
I think you are running the command from a different directory.
Open Terminal (Ctrl+Alt+T) and make sure that the file you trying to run is listed when you do the ls
command.
If you have downloaded the file using a web browser browser, then the file should be located in ~/Downloads
. Change the directory to your downloads folder with cd ~/Downloads
.
Once you have made sure that ls
lists the file, then run the command:
sudo dpkg -i wineqq2012-20120719-longene.deb
Eliah Kagan
116k54 gold badges313 silver badges488 bronze badges
answered Dec 22, 2012 at 8:48
devav2devav2
35.5k17 gold badges79 silver badges82 bronze badges
Modify the command the following way:
sudo dpkg -i ./wineqq2012-20120719-longene.deb
This will make dpkg
search the package in the current folder.
BTW, you should you use apt
, to get the pkg listed in the log files, and more:
sudo apt install ./wineqq2012-20120719-longene.deb
answered Nov 11, 2018 at 15:14
abu_buaabu_bua
10.4k10 gold badges42 silver badges62 bronze badges
Я загружаю deb QQ2012 в загрузочные файлы, но когда я устанавливаю deb, система сообщает мне:
$ sudo dpkg -i wineqq2012-20120719-longene.deb
[sudo] password for collins:
dpkg: error processing wineqq2012-20120719-longene.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
wineqq2012-20120719-longene.deb
задан
11 November 2018 в 18:09
поделиться
3 ответа
Сообщение об ошибке Нет такого файла или каталога
означает, что файл .deb
не существует или не существует в текущем каталоге.
~
между :
и $
в приглашении представляет текущий рабочий каталог. ~
(когда следующий символ — /
или, как в этом случае, вообще ничего) — это сокращение для вашего домашнего каталога, / home / collins
.
Вы сказали, что загрузили файл .deb
«в файлах загрузки». Предположим, это означает, что вы загрузили его в папку Downloads
, это означает, что он находится в / home / collins / Downloads
, а не в / home / collins
.
Таким образом, вы сможете установить его, выполнив следующую команду:
sudo dpkg -i ~/Downloads/wineqq2012-20120719-longene.deb
Если это не сработает, попробуйте ввести
sudo dpkg -i
, не нажимая , введите . Добавьте пробел в конец. Затем перетащите файл из Nautilus (файлового браузера) в окно терминала. Это вставит его полный путь. Затем нажмите Введите .
ответ дан Eliah Kagan
11 November 2018 в 18:09
поделиться
Я думаю, вы запускаете команду из другого каталога.
Открыть терминал ( Ctrl + Alt + T ]) и убедитесь, что файл, который вы пытаетесь запустить, отображается в списке, когда вы выполняете команду ls
.
Если вы загрузили файл с помощью браузера веб-браузера, он должен находиться в ~ / Загрузки
. Измените каталог на папку загрузок с помощью cd ~ / Downloads
.
Убедившись, что ls
перечисляет файл, запустите команду:
sudo dpkg -i wineqq2012-20120719-longene.deb
ответ дан Eliah Kagan
11 November 2018 в 18:09
поделиться
Измените команду следующим образом:
sudo dpkg -i ./wineqq2012-20120719-longene.deb
Это заставит dpkg
искать пакет в текущей папке.
Кстати, вы должны использовать apt
, чтобы получить pkg, указанный в файлах журнала, и многое другое:
sudo apt install ./wineqq2012-20120719-longene.deb
ответ дан abu_bua
11 November 2018 в 18:09
поделиться
Другие вопросы по тегам:
Похожие вопросы:
- Печать
Страницы: [1] 2 Все Вниз
Тема: Помогите пожалуйсто разобраться с терминалом. (Прочитано 3068 раз)
0 Пользователей и 1 Гость просматривают эту тему.

linuxoid@

БТР
Нужно путь к пакету полный указывать, либо открывать терминал в каталоге с пакетом.

linuxoid@
Нужно путь к пакету полный указывать, либо открывать терминал в каталоге с пакетом.
Так и делаю,установку запускаю только из каталога с пакетом.

ArcFi
linuxoid@, на будущее…
Ошибки при выполнении команд обычно выкладывают в таком виде:
$ sudo dpkg zenmap_5.00-2_i386.deb
dpkg: need an action option
Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].
Options marked [*] produce a lot of output - pipe it through `less' or `more' !
А если текста много, то ещё и под спойлер.

linuxoid@
linuxoid@, на будущее…
Ошибки при выполнении команд обычно выкладывают в таком виде:$ sudo dpkg zenmap_5.00-2_i386.deb
dpkg: need an action optionType dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].Options marked [*] produce a lot of output - pipe it through `less' or `more' !
А если текста много, то ещё и под спойлер.
Хорошо буду знать спасибо за предупреждение.
Впредь буду внимательней.

фирэфохэ
да и ставить программы лучше из репозиториев, через «установка/удаление», synaptic, apt-get, aptitude…
http://i18.ЗАПРЕЩЁННЫЙ РЕСУРС/big/2011/0325/6d/19eaa72dd24048a6fb0587832c4b096d.gif КДЕ — УГ. Дебиан — недоось.
aleman
Если напишешь в терминале install.sh то конечно он поймет это за команду.
Чтоб сказать ему что это файл надо написать вот так ./install.sh
Он поймет что ты указал ему файл который лежит в текущей папке.

linuxoid@
да и ставить программы лучше из репозиториев, через «установка/удаление», synaptic, apt-get, aptitude…
Дак тут тоже штука synaptic видит пакет но показывает его не активным то-есть выделить его нельзя вот и мучаюсь.

Alie Alexandross
Если напишешь в терминале install.sh то конечно он поймет это за команду.
bash install.sh
./*.sh может не запустить скрипт, если у последнего нет прав на исполнение, а вот bash — вполне.
Оптимальный вариант — посмотреть первую строку скрипта, чтоб понять на каком языке он написан и чем его стартовать.
« Последнее редактирование: 15 Сентября 2009, 19:31:43 от Alie Alexandross »
Подпись автора jillsmitt истинна…

gantellus
Дак тут тоже штука synaptic видит пакет но показывает его не активным то-есть выделить его нельзя вот и мучаюсь.
не понял
Пруфскрин, пожалуйста
Придумайте ещё более дружественный интерфейс, и мир породит ещё более тупого юзера (с)
С2Duo 2.4 Ghz, Geforce 8800, Maya 44 PCI

linuxoid@
Если напишешь в терминале install.sh то конечно он поймет это за команду.
bash install.sh
./*.sh может не запустить скрипт, если у последнего нет прав на исполнение, а вот bash — вполне.
Оптимальный вариант — посмотреть первую строку скрипта, чтоб понять на каком языке он написан и чем его стартовать.
огромное спасибо .sh теперь устанавливаються а вот .deb так и не пашут.

Alie Alexandross
а вот .deb так и не пашут.
Так вы хоть вывод dpkg выложите…
Подпись автора jillsmitt истинна…

linuxoid@
а вот .deb так и не пашут.
Так вы хоть вывод dpkg выложите…
Dpkg: error processing ubuntu-tweak_0.4.9-1~getdeb_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
Ubuntu-tweak_0.4.9-1~getdeb_i386.deb
Ну вот листинг.
че за хрень не знаю
« Последнее редактирование: 15 Сентября 2009, 20:05:15 от linuxoid@ »

gantellus
покажи полный вывод команды, включая то что ты туда писал
а перед этим вывод команды ls
Придумайте ещё более дружественный интерфейс, и мир породит ещё более тупого юзера (с)
С2Duo 2.4 Ghz, Geforce 8800, Maya 44 PCI

satch
cannot access archive: [b]No such file or directory[/b]
Ну вот листинг.
че за хрень не знаю
No such file or directory вам ни о чем не говорит? может проще переместить деб-пакет в домашнюю директорию(просто переместите в ту же папку где лежат папки с названиями «музыка»(music), «картинки»(pictures) и прочее) и введите в терминале sudo dpkg -i ubuntu-tweak_0.4.9-1~getdeb_i386.deb
надеюсь, поймете свою ошибку
Наше желание помочь прямопропорционально вашему желанию решить проблему
- Печать
Страницы: [1] 2 Все Вверх
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
Steps:
git clone [URL link from main page]
- Navigated to setup folder, and
./install.sh
- Received error message: dpkg: error: cannot access archive ‘libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb’: No such file or directory
pip install --force-reinstall pip==18.1
- edited /setup/install.sh. Commented out all lines of
pip install --upgrade pip
- Tried to reinstall with
./install.sh
. Same error message sudo rm -rf Empire
in opt folder where Empire was installed.- Migrated over to dev branch,
git clone [URL link from dev branch]
- Navigated to setup folder, and
./install.sh
- 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.
-
dpkg: error: cannot access archive
I am running Ubuntu 22.04.2 LTS
When I update and upgrade, I get the following error:
Code:
dpkg: unrecoverable fatal error, aborting: loading files list file for package 'fonts-tibetan-machine': cannot read /var/lib/dpkg/info/fonts-tibetan-machine.list (Input/output error) E: Sub-process /usr/bin/dpkg returned an error code (2)
I cannot use Firefox, and my PC is not working right, can anyone help me? Thank you!
Last edited by ajgreeny; April 19th, 2023 at 08:17 PM.
Reason: Font normalised Code tags added
-
Re: dpkg: error: cannot access archive
Please, Please use normal fonts.
can you show us this:Code:
ls /var/lib/dpkg/info/ | grep fonts
EDIT: and one more while we are here:
Code:
ls -l /var/lib/dpkg/status*
Last edited by 1fallen; April 19th, 2023 at 06:50 PM.
With realization of one’s own potential and self-confidence in one’s ability, one can build a better world.
Dalai Lama>>
Code Tags Arch Linux, openSuse Tumbleweed, Debian Unstable
-
Re: dpkg: error: cannot access archive
Multiple errors that have nothing directly to do with each other, at least one give an I/O error on file access… That smells like a damaged filesystem, possibly a broken harddrive.
Can you test smart status of your hard drive? BTW, best to monitor that over time.
-
Re: dpkg: error: cannot access archive
[QUOTE=ttgteacher;14139676]I am running Ubuntu 22.04.2 LTS
When I update and upgrade, I get the following error:
Code:
... cannot read /var/lib/dpkg/info/fonts-tibetan-machine.list (Input/output error)
When I saw this in the first post, the first thing I thought of was;
Reboot the machine and at the Grub2 menu, use Advance Options > Rescue > fsck. If it is just an EXT filesystem error, it will attempt to repair it. If it is a bad part of the disk, it will attempt to move it to a good part of the disk and mark that sector as bad. The same with ZFS ZPool scrub for filesystems on ZFS.
If it says that it had to repair the filesystem and there is still a problem with reading that file, then reinstall the package via
Code:
sudo apt install --reinstall fonts-tibetan-machine
I recognize that as a font package for Tibetan, Dzongkha and Ladakhi.
I may be confused, but… Everyone lately seems to jump directly to smartmontools first for reading errors (which I use), but seem to forget that there are other tools to use first. That, and smartmontools is not a default installed application and so it would need to be installed by a User before using it.
I love smartmontools and it is invaluable for what it does, and what it can report… now, along with nvme-cli for NVMe drives. I use both a lot.
Just my thoughts.
Last edited by MAFoElffen; April 20th, 2023 at 12:01 AM.
Reason: Because after I post something, I wonder how I spelled things so badly… Am I becomeing dislexic? LOL
-
Re: dpkg: error: cannot access archive
I suggest you boot to Ubuntu liveCD / ISO / USB and run an fsck against the internal file systems to make sure they are healthy
-
Re: dpkg: error: cannot access archive
I tried, but this did not work.
-
Re: dpkg: error: cannot access archive
I tried this, but had no success.
-
Re: dpkg: error: cannot access archive
ttgteacher; Hello
I tried, but this did not work.
is devoid of information and does no tell us anything new.
What did you try and what is the result — exactly ? What did you look forward to happening ?
with a free operating system
-
Re: dpkg: error: cannot access archive
I followed the instructions above and typed this into terminal, hoping my system would update, and upgrade. I still got the same error, and my pc does not work properly.
I just need simple to follow instructions from someone in the forum who knows how to help me. Do you think I should try something else? I am looking to see what I can do to remove the error message and be able to use my computer.
Thank you!
ls /var/lib/dpkg/info/ | grep fonts
ls -l /var/lib/dpkg/status*sudo apt install —reinstall fonts-tibetan-machine
-
Re: dpkg: error: cannot access archive
Thank you all, I reinstalled 22.04.2 LTS, I appreciate your help. I lost all my files, pictures and documents, but I am back up and running.
Asked
2 years, 9 months ago
Viewed
4k times
asked Aug 19, 2020 at 15:32
poseidonposeidon
111 silver badge2 bronze badges
3
Run the following commands.
sudo dpkg -i --force-overwrite kali-themes tilix-common libgtkd-3-0 libphobos2-ldc-shared91 libvted-3-0
sudo apt -f install
sudo apt install tilix
answered Aug 19, 2020 at 23:59
karelkarel
1,9232 gold badges17 silver badges26 bronze badges
0
Not the answer you’re looking for? Browse other questions tagged
.
Not the answer you’re looking for? Browse other questions tagged
.
Содержание
- dpkg: error: cannot access archive ‘libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb’: No such file or directory #1359
- Comments
- InTheNight1 commented May 31, 2019
- Empire Version
- OS Information (Linux flavor, Python version)
- Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
- Screenshot of error, embedded text output, or Pastebin link to the error
- Any additional information
- Ubuntu Wiki
- DebuggingInstallationIssues
- Introduction
- Known issues
- Corrupted package archive
- Not a Debian format archive
- Corrupted filesystem tarfile
- —fsys-tarfile
- short read — Input/output error
- Exec format error
- triggers ci file contains unknown directive syntax
- lzma : decoder error
- files list file missing final newline / contains empty filename
- Inconsistent state
- Package in bad inconsistent state
- package is already installed and configured
- Other issues
- Can’t access archive
- No space left on device
- DbDriver «config» is locked
- /var/lib/defoma/locked exists
- /etc/defoma/hints/FONTNAME.hints: Unable to open, or empty
- Non-bugs
- Segmentation Fault — Exit status 139
- Other resources
- помощь новичку
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
- git clone [URL link from main page]
- Navigated to setup folder, and ./install.sh
- Received error message: dpkg: error: cannot access archive ‘libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb’: No such file or directory
- pip install —force-reinstall pip==18.1
- edited /setup/install.sh. Commented out all lines of pip install —upgrade pip
- Tried to reinstall with ./install.sh . Same error message
- sudo rm -rf Empire in opt folder where Empire was installed.
- Migrated over to dev branch, git clone [URL link from dev branch]
- Navigated to setup folder, and ./install.sh
- 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
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
Источник
Debugging Central |
This page is part of the debugging series — pages with debugging details for a variety of Ubuntu packages. |
Contents
- Introduction
- Known issues
- Corrupted package archive
- Not a Debian format archive
- Corrupted filesystem tarfile
- —fsys-tarfile
- short read — Input/output error
- Exec format error
- triggers ci file contains unknown directive syntax
- lzma : decoder error
- files list file missing final newline / contains empty filename
- Inconsistent state
- Package in bad inconsistent state
- package is already installed and configured
- Other issues
- Can’t access archive
- No space left on device
- DbDriver «config» is locked
- /var/lib/defoma/locked exists
- /etc/defoma/hints/FONTNAME.hints: Unable to open, or empty
- Corrupted package archive
- Non-bugs
- Segmentation Fault — Exit status 139
- Other resources
- 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
First of all, Dockerfile
is not executed as a script. Each RUN
is executed separately as if you open a new terminal, so
RUN cd /tmp
does nothing, because next RUN
will be executed in working directory, so google chrome is downloaded to /home/jenkins
.
And your problem is that for some reason (.bashrc script or something else) cleans jenkins home directory before starting shell. So you download chrome, then start a new shell, it deletes a .deb
and you receive the error.
The simple fix will look like this:
RUN mkdir -p /tmp && cd /tmp &&
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
dpkg -i google-chrome-stable_current_amd64.deb &&
rm google-chrome-stable_current_amd64.deb # remove .deb after installation
And to actually change working directory to /tmp
, just do
WORKDIR /tmp
If directory doesn’t exist, it will be created (see Dockerfile reference).