E sub process usr bin dpkg returned an error code 1
E sub process usr bin dpkg returned an error code 1
Как решить ошибку “sub process usr bin dpkg returned an error code 1″ в Ubuntu
Если вы столкнулись с ошибкой с «sub process usr bin dpkg returned an error code 1» при установке программного обеспечения на Ubuntu Linux, вот как вы можете это исправить.
Одной из распространенных проблем в Ubuntu и других дистрибутивах на основе Debian являются ломанные пакеты.
Вы пытаетесь обновить систему или установить новый пакет, и столкиваеиесь с такой ошибкой, как «Sub-process /usr/bin/dpkg returned an error code 1.
Вот что случилось на днях.
Я пытался установить радио приложение на Ubuntu, и система вернула мне эту ошибку:
Здесь важны последние три строки:
Решение проблемы Sub-process /usr/bin/dpkg returned an error code (1)
Попробуем исправить этот сломанный пакет.
Я покажу вам несколько методов, которые вы можете попробовать по одному.
Они простые в использовании и просто без проблем осуществимы.
Вы должны попытаться запустить sudo apt update, а затем попытаться установить новый пакет или обновиться после каждого из описанных здесь методов.
Способ 1: переконфигурировать базу данных пакетов
Первый метод, который вы можете попробовать, – перенастроить базу данных пакетов.
Вероятно, база данных повреждена при установке пакета.
Реконфигурация часто устраняет проблему.
Способ 2: Использовать принудительную установку
Если установка ранее прервалась, вы можете попробовать установить пакет принудительно:
Способ 3. Попробуйте удалить проблемный пакет.
Способ 4. Удалите информационные файлы с информацией о проблемном пакете
Это должно быть вашим последним прибежищем.
Вы можете попробовать удалить файлы, связанные с пакетом, из /var/lib/dpkg/info.
Вам нужно немного узнать о базовых командах Linux, чтобы выяснить, что происходит, и как использовать их с вашей проблемой.
В моем случае у меня была проблема с polar-bookhelof.
Couldn’t install mysql-server E: Sub-process /usr/bin/dpkg returned an error code 1 [closed]
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Cant reinstall mysql-service
1 Answer 1
I had the same issue. This tutorial helped solve my issue: Package mysql-server-5.5 is not configured yet
After completely uninstalling mysql run the following command
Then reinstall mysql
Not the answer you’re looking for? Browse other questions tagged mysql ubuntu or ask your own question.
Related
Hot Network Questions
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
How to Solve “Sub-process /usr/bin/dpkg returned an error code (1)” In Ubuntu
It’s not uncommon to run into an issue of broken packages in Ubuntu and other Debian-based distributions. Sometimes, when you upgrade the system or install a software package, you may encounter the ‘Sub-process /usr/bin/dpkg returned an error code’ error.
For example, a while back, I tried to upgrade Ubuntu 18.04 and I bumped into the dpkg error as shown below.
This indicates that the google-chrome-stable package is either broken or corrupt. There are a few workarounds to this problem, so don’t throw in the towel yet or discard your system.
Solution 1: Reconfiguring the dpkg Package
One of the triggers of this error is a corrupted dpkg database. This can be caused by the sudden interruption of the installation of a software package. Reconfiguring the database is one way to resolve this issue.
To do this, simply execute the command:
This reconfigures the unpacked packages that were not installed during the installation process.
Solution 2: Force Install the Troublesome Package
Solution 3: Purge the Bad or Corrupted Software Package
If the first two solutions did not fix the problem, you can remove or purge the problematic software package as shown.
For example, in my case, purging the Google chrome package fixed the issue.
Then invoke the commands below to remove all the old, unused, and unnecessary packages which also frees up space on your hard drive.
Solution 4: Remove all the Files Associated with the Package
Lastly, you can manually remove all the associated with the troublesome package. First, you need to find these files which are located in the /var/lib/dpkg/info directory as shown.
After listing the files, you can move them to the /tmp directory as shown
Alternatively, you can use the rm command to manually remove the files.
Finally, update the package lists as shown:
You can thereafter give it another shot in reinstalling the software package.
Conclusion
This type of dpkg error points to an issue with the package installer usually caused by the interruption of an installation process or a corrupt dpkg database.
Any of the above-mentioned solutions should fix this error. If you have come this far, then it’s our hope that the issue has been successfully resolved and that you were able to reinstall your software package.
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
How to Fix sub-process /usr/bin/dpkg returned an error code (1) in Ubuntu
Home » SysAdmin » How to Fix sub-process /usr/bin/dpkg returned an error code (1) in Ubuntu
The error message “Sub-process /usr/bin/dpkg returned an error code (1)” indicates a problem with the package installer. This can happen in Ubuntu after a failed software installation, or if the installer becomes corrupted.
The key phrase in this error is /usr/bin/dpkg. This refers to the dpkg package installer for Linux. A package installer is an application that tracks software, updates, and dependencies. If it is damaged, any new software installation will cause this error message.
We cover several possible solutions, from easily-solved and straightforward solutions to more complex processes. This guide will help you resolve the dpkg returned an error code 1 on an Ubuntu operating system.
Options to Fix sub-process /usr/bin/dpkg returned an error code (1)
Method 1: Reconfigure dpkg Database
If your package database has become corrupted, reconfiguring it can repair it.
Enter the following command:
This command reconfigures packages that have been unpacked but not necessarily installed. An interruption at the wrong time can cause this database to become corrupt. This is especially helpful if you were running installation and the process was interrupted.
Method 2: Force-Install the Software
If Method 1 does not work, you can attempt to fix the dependencies in the package installer.
Enter the following:
The -f option means fix-broken. It repairs any broken dependencies in your package manager. Broken dependencies occur when a download is interrupted, or there is a problem with the cached download.
Note: Dependencies are other software packages that are required by the software you are installing. A package manager helps keep track of dependencies for you.
Method 3: Remove Bad Software Package
If you know which software caused the errors on your system, you can remove it.
Enter the command and package_name with the name of the software that is causing the problem:
The —purge option directs the system to remove config files in addition to uninstalling. This helps get rid of all traces of the offending software.
Method 4: Clean Out Unused Software Packages
If an old, outdated, or unused package is causing the problem, you can solve the problem by removing unused software packages.
Enter the following command in the terminal:
Note: Avoid the next 2 options unless all other methods have failed.
Method 5: Remove Post Files
If you know the name of the package that is causing problems, you can delete the files manually. The installation files are usually located in the /var/lib/dpkg/info file.
Type in the following command and replace package_name with the name of the broken software.:
This will generate a list of all references to the software you installed.
You can then remove them by entering:
This command moves the files to the /tmp directory, where they cannot affect your package manager.
Next, update the package manager:
After which you can re-install the broken software again.
Method 6: Overwrite Package File
If you know the name of the package that is causing a problem, you can force an overwrite.
Use the following command and replace full_name_of_package with the actual package name:
Note: If you do not know the actual name of the package, you can search for it with the following command:
Replace package_name with the name of your software. This should return any instances of that package name. Note the exact filename, and type it into the previous command.
The dpkg error message indicates that there is a problem with the package installer, which is commonly caused by an interrupted installation process or a corrupted database.
By following these steps, you should now have several methods to fix the dpkg error message and attain a working package installer.
apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
I have error in apt-get install it is a error:
I try change my source list, and remake apt-get update
10 Answers 10
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
The same dpkg error is also possible when uninstalling:
First, uninstall the package:
Afterwards you can re-install it:
Try this. Open a new terminal and paste it
hope your problem will be solved.
Try the following steps from the terminal :
Hope this will fix your issues.
After playing around a little, the following solved it for me:
My guess is you don’t want both of these installed at the same time. I would use apt-get remove libc6-dev-amd64 to get yourself back to a good state, and then try again to install the packages that you want.
If those two packages are meant to work when they’re both installed at the same time, then file a bug with the package maintainer because they need to fix the packages to allow that.
The following steps fixed the issue:
Using below steps my problem resolve in «Oracle VM VirtualBox Manager»
apt purge libreoffice-base libreoffice-core
How To Solve “sub process usr bin dpkg returned an error code 1″ Error in Ubuntu
If you are encountering “sub process usr bin dpkg returned an error code 1” while installing software on Ubuntu Linux, here is how you can fix it.
One of the common issue in Ubuntu and other Debian based distribution is the broken packages. You try to update the system or install a new package and you encounter an error like ‘Sub-process /usr/bin/dpkg returned an error code’.
That’s what happened to me the other day. I was trying to install a radio application in Ubuntu when it threw me this error:
The last three lines are of the utmost importance here.
It tells me that the package polar-bookshelf is causing and issue. This might be crucial to how you fix this error here.
Fixing Sub-process /usr/bin/dpkg returned an error code (1)
Let’s try to fix this broken error package. I’ll show several methods that you can try one by one. The initial ones are easy to use and simply no-brainers.
You should try to run sudo apt update and then try to install a new package or upgrade after trying each of the methods discussed here.
Method 1: Reconfigure Package Database
The first method you can try is to reconfigure the package database. Probably the database got corrupted while installing a package. Reconfiguring often fixes the problem.
Method 2: Use force install
If a package installation was interrupted previously, you may try to do a force install.
Method 3: Try removing the troublesome package
If it’s not an issue for you, you may try to remove the package manually. Please don’t do it for Linux Kernels (packages starting with linux-).
Method 4: Remove post info files of the troublesome package
This should be your last resort. You can try removing the files associated to the package in question from /var/lib/dpkg/info.
You need to know a little about basic Linux commands to figure out what’s happening and how can you use the same with your problem.
In my case, I had an issue with polar-bookshelf. So I looked for the files associated with it:
Now all I needed to do was to remove these files:
Use the sudo apt update and then you should be able to install software as usual.
Which method worked for you (if it worked)?
I hope this quick article helps you in fixing the ‘E: Sub-process /usr/bin/dpkg returned an error code (1)’ error.
If it did work for you, which method was it? Did you manage to fix this error with some other method? If yes, please share that to help others with this issue.
Creator of It’s FOSS. An ardent Linux user & open source promoter. Huge fan of classic detective mysteries ranging from Agatha Christie and Sherlock Holmes to Detective Columbo & Ellery Queen. Also a movie buff with a soft corner for film noir.
Fix “Sub-process /usr/bin/dpkg returned an error code (1)” In Ubuntu
This error usually happens due to a failed application installation, or if the dpkg package installer becomes corrupted or interrupted in mid-way while installing a package.
Here are the commands that I tried to upgrade my Ubuntu desktop:
And. here is the error message:
Fix «Sub-process /usr/bin/dpkg returned an error code (1)» In Ubuntu
If you encountered with an error like above, worry not! Here, I have given a few workarounds to solve «Sub-process /usr/bin/dpkg returned an error code (1)» issue in Ubuntu and its variants such as Linux Mint, Pop OS.
If the package installation process is stopped or interrupted in mid-way, the dpkg database might be corrupted. Reconfiguring dpkg database may solve this issue.
To reconfigure dpkg database, simply run:
This command will try to fix the corrupted dpkg database and then reconfigure all broken packages. This command usually fixes the dpkg returned an error code (1) problem. If it didn’t solve the issue for any reason, follow the subsequent solutions.
If the first method didn’t work, run the following command to perform force install:
If these two solutions didn’t help and the issue still persists, try the next solution.
As you see in the error message (the last two lines), the eog package is causing this error.
For those wondering, eog (short for Eye of GNOME) is the official and default image viewer for the GNOME desktop environment. So this package is problematic and doesn’t let me to upgrade my Ubuntu.
To fix this error, remove the cached package using command:
Replace eog_3.36.2-0ubuntu1_amd64.deb with your package.
Clean the package cache folder:
Update the source lists:
Upgrade your system:
Finally, get the fresh package from official repositories and reinstall it like below:
This solution worked for me.
This should be your last resort. If none of the above methods help, remove the problematic package from your system like below:
This command will remove eog with all its configuration files from the system.
And also find and remove all files associated with the broken package.
To find all files related to a package, run:
Sample output:
Remove them manually.
That’s it. At this stage, any one of the these four solutions should have helped you to fix «Sub-process /usr/bin/dpkg returned an error code (1)» in Ubuntu and other DEB-based systems.
Solutions to other common problems in Ubuntu:
Python error E: Sub-process /usr/bin/dpkg returned an error code (1)?
I was trying to install «python-sklearn» which requires few dependencies when i try to install any python packages it shows errors something like this. I have tried few solutions suggested by few prevoius post but nothing is working in my case how can I solve this.
I tried to uninstall libblas3, liblapack3 with apt but when ever I add new package its ended with a error code 1 and list will shows that package
Please help How can I solve this..
3 Answers 3
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
In my case, I had an issue with python-faraday.
So I looked for the files associated with it:
Now all I needed to do was to remove these files:
Use the sudo apt update and then you should be able to install software as usual.
try this code snipet, it is work fine for me!
Oracle java 7 Installation in Ubuntu E: Sub-process /usr/bin/dpkg returned an error code (1)
I get the following:
And still no luck 🙁 Could anyone help me? I am quite lost at why It isn’t working. Thanks in advance.
6 Answers 6
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
Please follow below steps to install oracle java:
Download the latest Java SE SDK version.
Untar the Archive:
This step registers the downloaded version of Java as an alternative, and switches it to be used as the default:
Test
To check the version of Java you are now running
Output
To check the browser plugin browse to http://www.java.com/ and click “Do I have Java?”
i think that your download is corrupted you have to remove the corrupted package first by code :
remove and reimport the ropsitory:
install your package again :
If you have an Oracle Support account and you really need Oracle JDK 6 or 7, you can get the installers from the WebUpd8 PPA to work by downloading the binaries and placing them in the following folder:
. and then install the oracle-java6-installer or oracle-java7-installer package.
Tried with the solution but still not working. Even when I tried to download the jdk tar from the Oracle site it still failed at around 30-50MB. Anyway I found an article which talks about it and finally got it fixed!
Basically the steps are similar except the last one:
«E: Sub-process /usr/bin/dpkg returned an error code (1) » What does this mean?
I’ve seen this message several times whenever someone has a problem installing, upgrading or removing some piece of software, but I wonder, what does it mean, and more importantly, is possible to solve it?
(the above is just an example, not my actual problem)
1 Answer 1
That message is generic. It just means that the dpkg instance called by apt / apt-get failed for some reason. It doesn’t explain why, how, or give hints how to solve it. As a diagnostic message, it is not useful.
You need to read the lines before the message (sometimes quite a number of them) to find the real error that prevents you from completing the installation.
Yeah, but how do I solve it?
There is no single way to solve it. There are so many reasons why this can happen that it’s futile to attempt to list them all in a single post. Each and every circumstance is almost unique to that package/environment.
But, there’s redemption. The fact that you see this message means that probably there is more relevant information in the lines before the message. For illustrative purposes I will use a example:
Now, to find the problem, you need to read backwards:
E: Sub-process /usr/bin/dpkg returned an error code (1) doesn’t tell me anything useful. So moving on.
Errors were encountered while processing: mongodb-10gen just tells me what package have problems. Is useful but not enough.
dpkg: error while cleaning up: nothing useful here.
How To Solve ” sub process usr bin dpkg returned an error code 1″ Error?
Reconfigure Package Database
One of the first way is configuring package database. Package database holds installed package related information. If an package installation is interrupted this database may become corrupt. We need to repair and reconfigure this package database with the following command.
Install Forcefully
Some package installation may be interrupted and can not complete the installation because of the existing cache. We need to install forcefully which can be implemented like below.
Remove Error Causing Package
Overwrite Other Packages File
Another solution to this error is forcing overwrite to the package which creates problem.
Auto Remove Unneeded Packages
We can remove unneeded packages with the autoremove command like below. This is safe command which will clean cache for unused packages.
6 thoughts on “How To Solve ” sub process usr bin dpkg returned an error code 1″ Error?”
Thanks for your solution. I have implemented altos of solution many time but didn’t work. Your solution worked in one try. Great job
Hi Mohammad,
Thanks for your appreciation.
Have a nice day.
dpkg: error processing package git-daemon-run (–configure):
dependency problems – leaving unconfigured
Errors were encountered while processing:
runit
git-daemon-run
(base) [email protected]:
dpkg: error processing package git-daemon-run (–configure):
dependency problems – leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
runit
git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
(base) [email protected]:
$ sudo apt-get remove –purge getdeb-repository
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package getdeb-repository
(base) [email protected]:
$ sudo apt autoremove
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up runit (2.1.2-3ubuntu1) …
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
dpkg: error processing package runit (–configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of git-daemon-run:
git-daemon-run depends on runit; however:
Package runit is not configured yet.
Docker fails with Sub-process /usr/bin/dpkg returned an error code (1)
Im having issues trying to install JRE into my docker container.
I keep getting the error message;
If I scroll up the build output a bit, I also see the following issues;
My Dockerfile is very simple, but it just wont work
2 Answers 2
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
jre installation require man folder to exist on the server, try this:
Here is some background on this issue. This happens because the post install script tries to run update-alternatives for java and the folder /usr/share/man/man1 is not present as was already explained in the LinPy`s answer.
The following Debian bug discusses this problem in more details and also documents the workaround by creating them issing folder: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199#23
It seems this issue was recently closed for OpenJDK 8 but it seems to be still open in the newer JDKs, see:
The following patch can fix this and should probably be added also to newer OpenJDK versions:
E: Sub-process /usr/bin/dpkg returned an error code (1) whenever using apt-get
I have searched all over the internet, and have found that many people have nearly the exact same problem, but differ from mine in some small way. I’ve tried just about every solution I’ve found and nothing has worked.
Whenever using apt-get, I get a big error, I won’t post the entire output because of how big it is but it ends with
E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-4.4.0-103-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 dpkg: error processing package linux-image-extra-4.4.0-103-generic (— configure): subprocess installed post-installation script returned error exit status 1 No apport report written because MaxReports is reached already Errors were encountered while processing: linux-firmware linux-image-4.4.0-104-generic linux-image-extra-4.4.0-104-generic linux-image-generic-lts-xenial linux-generic-lts-xenial linux-image-extra-4.4.0-103-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
I’ve spent hours trying to find a solution and nothing works, many suggest methods that use sudo apt-get autoclean etc, but this doesn’t work considering every time I use apt-get I get this same error.
E: Sub-process /usr/bin/dpkg returned an error code (1)
EDIT: I have appended the output of cat /etc/default/grub to the question below
This was in fact the key to solving the issue. I think it’s worth noting that not having quotes around the OS assigned to GRUB_DEFAULT in /etc/default/grub didn’t actually present a problem for quite some time after I had set it(months). This may be because GRUB_DEFAULT was initially set from another linux in my dual boot setup.
I have looked at other questions regarding this error, but haven’t found one that helps me, so far.
I am getting the below error when I do:
I have tried purging the packages mentioned in the error(as per answers to other questions with the same error)
But in both instances, I get basically the same error output as below. Can anyone help me resolve this?
Error:
Output of cat /etc/default/grub
E: Sub-process /usr/bin/dpkg returned an error code (1) #5783
Comments
phamt8611 commented Sep 7, 2020
Hi everyone, I am posting this article to fix the problem.
E: Sub-process / usr / bin / dpkg returned an error code (1)
Above is the error I get when updating a package on ubuntu-20.04 installed by proot-disrtro.
The message of this type I have encountered at some point, every time I use the command «apt upgrade» it will appear.
The text was updated successfully, but these errors were encountered:
Grimler91 commented Sep 7, 2020
Opening duplicate issues won’t get you help faster. Provide the information requested in the bug report template. E: Sub-process / usr / bin / dpkg returned an error code (1) does not tell us anything about the actual problem.
asepnopan commented Feb 15, 2021
Hi everyone, I am posting this article to fix the problem.
E: Sub-process / usr / bin / dpkg returned an error code (1)
Above is the error I get when updating a package on ubuntu-20.04 installed by proot-disrtro.
The message of this type I have encountered at some point, every time I use the command «apt upgrade» it will appear.
I have same problem
ghost commented Feb 16, 2021 •
This will permanently fix the error and to prevent udevadm to regenerate postinst script if it’s updated
AnonHackerx commented Sep 23, 2021
install: cannot create regular file ‘/usr/local/bin/udevadm’: No such file or directory
AnonHackerx commented Sep 23, 2021
dpkg: error processing archive /data/data/com.termux/cache/apt/archives/ruby_3.0.2-4_arm.deb (—unpack):
trying to overwrite ‘/data/data/com.termux/files/usr/bin/bundler’, which is also in package ruby2 2.7.2-3
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/data/data/com.termux/cache/apt/archives/ruby_3.0.2-4_arm.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
Grimler91 commented Sep 23, 2021
@AnonBlkHatHacker From where did you get ruby2? That is not a package created by us.
The error message says that ruby 2.7.2 conflicts with ruby 3.0.2.
Footer
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
E: Sub-process /usr/bin/dpkg returned an error code (1) after do-release-upgrade to 20.04 from 19.10
Operating System: Kubuntu 20.04 KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 Kernel Version: 5.4.0-33-generic OS Type: 64-bit Processors: 4 × Intel® Pentium® CPU 4415U @ 2.30GHz Memory: 11,5 GiB of RAM
E: Sub-process /usr/bin/dpkg returned an error code (1) after do-release-upgrade to 20.04 from 19.10
EDIT: I also had a problem with an icon package, I installed it and now I get:
1 Answer 1
Then sudo apt-get upgrade
Not the answer you’re looking for? Browse other questions tagged do-release-upgrade or ask your own question.
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Python error E: Sub-process /usr/bin/dpkg returned an error code (1)?
I was trying to install «python-sklearn» which requires few dependencies when i try to install any python packages it shows errors something like this. I have tried few solutions suggested by few prevoius post but nothing is working in my case how can I solve this.
I tried to uninstall libblas3, liblapack3 with apt but when ever I add new package its ended with a error code 1 and list will shows that package
Please help How can I solve this..
3 Answers 3
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
In my case, I had an issue with python-faraday.
So I looked for the files associated with it:
Now all I needed to do was to remove these files:
Use the sudo apt update and then you should be able to install software as usual.
try this code snipet, it is work fine for me!
I have encountered various package management problems that cause APT commands to fail with output that ends with this line:
Occasionally other error codes may appear such as 100 which means dpkg is not there, but 1 is the most common error code.
Unfortunately this error code tells me almost nothing about what actually caused the error or how I should solve it. Almost every package management issue I see, regardless of its cause or solution, produces the same error!
So, where will I find the useful part of the output, which I can search for online or ask questions about on Ask Ubuntu?
2 Answers 2
Apt logs it’s actions sequentially, just like a human does.
Simply read the output line-by-line.
Here is a non-apt example. Read it line-by-line and you will see that it tells a story:
Most of the output is routine, but you need it to mark apt’s progress. That context is how you understand what was happening. It really is a story.
Error (1) is common. It’s a summary error code, indicating that the problem occurred to a subtask («some problem building«). Jump backward in the story to where that particular subtask occurred, and you will see the specific detail («ran out of blocks«).
These lines will start with dpkg: since that’s the name of the program returning the error. The lines of output immediately preceding or following these lines are often the most helpful.
A few examples of the many possible errors you might see:
This means that the post-installation script could not run. Shells use an exit status of 127 to mean «command not found,» so a command called by the post-inst script was not found. The lines before the dpkg line give a hint as to the reason: there is something wrong with the /etc/environment file (which should set environment variables like PATH ).
The above error was caused by a bug in the runit package, which expected to find Upstart installed, although it had been succeeded by systemd as the default init system for Ubuntu. So, the message failed to connect to Upstart is the best hint, but we need the context to find out how this is causing the package management problem.
This means there are package conflicts, perhaps caused by having a mixture of repository versions or third party repositories.
If you are asking a question here or on another support site, make sure you include the command you ran and the complete output, not just the summary error messages.
Sub-process /usr/bin/dpkg returned an error code (1) while upgrading python3.10
Tried to remove installed python3.10 packages but it results in error Unmet dependencies
What does this error message means and is there’s a way to fix it?
3 Answers 3
Try removing the problematic packages ie libpython3.10-minimal libpython3.10-stdlib.
It will say that libpython3.10-minimal not found so it will reinstall it.
As Rice and hobbs said, the problem is that a file moved from one package to another, and they are now stepping on each other during the update. I followed their advice to force the upgrade, but had to tweak it a bit. Here’s what I ended up doing:
That forces the two colliding packages to uninstall, even though others depend on them.
Answer adjusted from here
No need to remove them, forcefully install one package, than fix the rest.
E: Sub-process /usr/bin/dpkg returned an error code (1) dpkg error
I’m getting this error when running sudo apt upgrade :
I tried the following:
I also tried flatpak update
My kernel: 5.4.0-7634-generic
My installed kernels:
1 Answer 1
You can get old kernels removed by this command:
What version of Ubuntu are you using?.
You only have 5.4 MB available.
You can manually delete unused or very old kernel in /boot but this has to be very carefully done or you can loss the ability to boot. Also some files can be moved and symbolic links can be created and keep the files in a mountpoint with enough space and after that run
I can assist if you provide the output of:
Edit 2020-08-25: First see what is your Kernel:
You can see the kernels installed in your system with:
The kernels that are older, specially if they are very much older, are the first candidates to be deleted. I recommend you to uninstall few of them, two or three only, until you can update your system and after run autopurge.
You can remove one specific kernel with:
Normally you’ll have to do it in pairs. For example:
Edit 2020-09-01: As you’re using Kernel 34 we are going to move two that you are not using:
Type those commands:
After this you’ll have some free space in /boot with the kernel files not deleted, but linked with a symbolic link. This is important so dkpg can find them in order to do autoremove. Now do:
Python error E: Sub-process /usr/bin/dpkg returned an error code (1)?
I was trying to install «python-sklearn» which requires few dependencies when i try to install any python packages it shows errors something like this. I have tried few solutions suggested by few prevoius post but nothing is working in my case how can I solve this.
I tried to uninstall libblas3, liblapack3 with apt but when ever I add new package its ended with a error code 1 and list will shows that package
Please help How can I solve this..
3 Answers 3
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
In my case, I had an issue with python-faraday.
So I looked for the files associated with it:
Now all I needed to do was to remove these files:
Use the sudo apt update and then you should be able to install software as usual.
try this code snipet, it is work fine for me!
Linux ubuntu persistent USB install E: Sub-process /usr/bin/dpkg returned an error code (1)
I created a persistent ubuntu USB install using mkusb but now whenever i try install any package i get the same error:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Heres a copy of the terminal, any help would be greatly appreciated:
$ sudo apt-get install blender
Reading package lists. Done
Building dependency tree Reading state information. Done
The following additional packages will be installed:
blender-data fonts-dejavu libavdevice-ffmpeg56 libboost-locale1.58.0 libboost-regex1.58.0 libboost-thread1.58.0
libdc1394-22 libgtkglext1 libjemalloc1 libopencolorio1v5 libopencv-highgui2.4v5 libopenimageio1.6 libsdl1.2debian
libspnav0 libtinyxml2.6.2v5 libyaml-cpp0.3v5
The following NEW packages will be installed:
blender blender-data fonts-dejavu libavdevice-ffmpeg56 libboost-locale1.58.0 libboost-regex1.58.0
libboost-thread1.58.0 libdc1394-22 libgtkglext1 libjemalloc1 libopencolorio1v5 libopencv-highgui2.4v5
libopenimageio1.6 libsdl1.2debian libspnav0 libtinyxml2.6.2v5 libyaml-cpp0.3v5
0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/33.8 MB of archives.
After this operation, 149 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package blender-data.
Selecting previously unselected package fonts-dejavu.
Selecting previously unselected package libdc1394-22:amd64.
Selecting previously unselected package libsdl1.2debian:amd64.
Selecting previously unselected package libavdevice-ffmpeg56:amd64.
Selecting previously unselected package libboost-thread1.58.0:amd64.
Selecting previously unselected package libboost-locale1.58.0:amd64.
Selecting previously unselected package libjemalloc1.
Selecting previously unselected package libtinyxml2.6.2v5:amd64.
Selecting previously unselected package libyaml-cpp0.3v5:amd64.
Selecting previously unselected package libopencolorio1v5.
Unpacking libopencolorio1v5 (1.0.9
Selecting previously unselected package libboost-regex1.58.0:amd64.
Selecting previously unselected package libgtkglext1:amd64.
Selecting previously unselected package libopencv-highgui2.4v5:amd64.
Unpacking libopenimageio1.6 (1.6.11
Selecting previously unselected package libspnav0.
Selecting previously unselected package blender.
Processing 1 added doc-base file.
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1+elementary2
Processing triggers for bamfdaemon (0.5.3
update-initramfs is disabled since running on read-only media
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: Service checkroot has to be enabled to start service cryptdisks-early insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package cryptsetup (—configure):
subprocess installed post-installation script returned error exit status 1
Setting up libopencolorio1v5 (1.0.9
Setting up libopenimageio1.6 (1.6.11
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
«E: Sub-process /usr/bin/dpkg returned an error code (1)» when I try and install OpenVPN. What is this?
Whenever I try and install OpenVPN on My Debian x86 Minimal VPS I get that error. Here is the full code if that helps:
What’s causing these errors?
3 Answers 3
So if you actually needed FUSE, you’d have to (ask your provider to) enable it for your container.
However, I wouldn’t know what OpenVPN used FUSE for, so I’d expect openvpn to have been installed correctly nevertheless.
To get rid of the error (which will pop up with every package), just apt-get remove fuse (whatever caused it to be installed as a dependency will not work until it has been enabled).
The actual error is later after «Creating fuse device». To populate the /dev/ directory there are two ways. Modern systems use udev to dynamically add devices as they come and go, older system used to use MAKEDEV to statically create a whole bunch of devices.
In your case MAKEDEV was called and detected traces of udev and therefore did not create any device files.
The following commands expect some device files which are not there.
To solve this check what happend to your udev daemon. Maybe reinstalling udev might be good. Maybe just rebooting you box might be enough.
Как исправить ошибку: E: Sub-process /usr/bin/dpkg returned an error code
При обновлении пакетов Ubuntu появляется ошибка «E: Sub-process /usr/bin/dpkg returned an error code», при этом система не может закончить установку какого-либо пакета…
Исправляем ошибку так
Заходим в директорию /var/lib/dpkg/info (это делается с правами root) и находим в ней все файлы с именем обрабатываемого пакета, из-за которого выдается ошибка и переименовываем все файлы с его именем (например, было paket.info стало
Далее показано как перейти в каталог и удалить нужные пакет (слово paket замените на имя вашего пакета).
Запускаем команду исправления:
Затем устанавливаем пакет по новой (если конечно он еще нужен). Проверяем, создались ли новые файлы в папке /var/lib/dpkg/info, а если нет — то переименовываем наши файлы обратно (убираем «
PS: если не получилось, пробуем еще так:
Завершаем всё обновлением всего
да и в завершении всего, можно радостно перегрузить систему:
ПОИСК ПО САЙТУ
РЕКОМЕНДУЮ
Использую с 2019 года. Рекомендую.
Выгодный хостинг серверов Hetzner. Регистрируйся по моей ссылке, и получи 20 евро облачных кредитов.
Использую с 2012 года. Рекомендую.
Для ваших Linux-серверов отличный сервис DigitalOcean
Использую с 2011 года. Рекомендую.
Облачный диск DropBox удобный для совместной работы или переноса документов дом-работа-дом.
apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
I have error in apt-get install it is a error:
I try change my source list, and remake apt-get update
10 Answers 10
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
The same dpkg error is also possible when uninstalling:
First, uninstall the package:
Afterwards you can re-install it:
Try this. Open a new terminal and paste it
hope your problem will be solved.
Try the following steps from the terminal :
Hope this will fix your issues.
After playing around a little, the following solved it for me:
My guess is you don’t want both of these installed at the same time. I would use apt-get remove libc6-dev-amd64 to get yourself back to a good state, and then try again to install the packages that you want.
If those two packages are meant to work when they’re both installed at the same time, then file a bug with the package maintainer because they need to fix the packages to allow that.
The following steps fixed the issue:
Using below steps my problem resolve in «Oracle VM VirtualBox Manager»
apt purge libreoffice-base libreoffice-core
dpkg: error processing package mysql-server (dependency problems)?
When I try to install mysql-server, an error comes like:
What does it mean. Any ideas?
16 Answers 16
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
After considerable time scouring for answers, I found a solution that should work if there are others who already have a working Mysql 5.7 and just want to get past this bogus postinstall script. You can edit the postinstall script directly as (on Ubuntu):
sudo vi /var/lib/dpkg/info/mysql-server-5.7.postinst
And then, on the second line, just add exit 0 and then run dpkg again and you should get something like:
You definitely would not want to follow these instructions if your Mysql installation had not previously completed (there’s a reason that the postinstall script insists on running). But for those who might end up with dpkg in a wonky state, as I have, the above can save you a lot of time purging and reinstalling an already-working version of Mysql.
apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
I have error in apt-get install it is a error:
I try change my source list, and remake apt-get update
10 Answers 10
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
The same dpkg error is also possible when uninstalling:
First, uninstall the package:
Afterwards you can re-install it:
Try this. Open a new terminal and paste it
hope your problem will be solved.
Try the following steps from the terminal :
Hope this will fix your issues.
After playing around a little, the following solved it for me:
My guess is you don’t want both of these installed at the same time. I would use apt-get remove libc6-dev-amd64 to get yourself back to a good state, and then try again to install the packages that you want.
If those two packages are meant to work when they’re both installed at the same time, then file a bug with the package maintainer because they need to fix the packages to allow that.
The following steps fixed the issue:
Using below steps my problem resolve in «Oracle VM VirtualBox Manager»
apt purge libreoffice-base libreoffice-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
I’m getting an error while trying to update the linux-image-2.6.32-5-amd64 package on Debian 6, x64.
Am I doing something wrong?
1 Answer 1
I had a problem with the exact same signature today (zz-update-grub returning 1), which doesn’t tell you a lot. I took apart grub-mkconfig (adding echo statements everywhere), until I found out that it died in sourcing /etc/default/grub, where I had added resume= with some swap-detection logic to the default linux cmdline.
With my swap partition currently off (I tripled my ram today), it failed to find a swap partition and the backticked call silently caused the script to exit. Swapon fixed everything, though I’ve since added a test with an actual error message to /etc/default/grub.
I have no idea if this is your actual problem, but it’s at least a place to start looking (zz-update-grub mainly runs update-grub, which runs grub-mkconfig with some arguments). I can post my code if that would help.
apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
I have error in apt-get install it is a error:
I try change my source list, and remake apt-get update
10 Answers 10
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
The same dpkg error is also possible when uninstalling:
First, uninstall the package:
Afterwards you can re-install it:
Try this. Open a new terminal and paste it
hope your problem will be solved.
Try the following steps from the terminal :
Hope this will fix your issues.
After playing around a little, the following solved it for me:
My guess is you don’t want both of these installed at the same time. I would use apt-get remove libc6-dev-amd64 to get yourself back to a good state, and then try again to install the packages that you want.
If those two packages are meant to work when they’re both installed at the same time, then file a bug with the package maintainer because they need to fix the packages to allow that.
The following steps fixed the issue:
Using below steps my problem resolve in «Oracle VM VirtualBox Manager»
apt purge libreoffice-base libreoffice-core
Docker fails with Sub-process /usr/bin/dpkg returned an error code (1)
Im having issues trying to install JRE into my docker container.
I keep getting the error message;
If I scroll up the build output a bit, I also see the following issues;
My Dockerfile is very simple, but it just wont work
2 Answers 2
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
jre installation require man folder to exist on the server, try this:
Here is some background on this issue. This happens because the post install script tries to run update-alternatives for java and the folder /usr/share/man/man1 is not present as was already explained in the LinPy`s answer.
The following Debian bug discusses this problem in more details and also documents the workaround by creating them issing folder: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199#23
It seems this issue was recently closed for OpenJDK 8 but it seems to be still open in the newer JDKs, see:
The following patch can fix this and should probably be added also to newer OpenJDK versions:
Please help! Sub-process /usr/bin/dpkg returned an error code (1) Installing MySQL on Ubuntu
I’m trying to install mysql with Ubuntu and I’ve spent the last 3 days purging MySQL and redownloading to no avail. Most of the solutions I found didn’t work for me, and they are all some variation of deleting MySQL and redownloading. Ive tried manually going into the files and manually deleting all MySQL related files too. Any help would be appreciated!
I’ve also tried reinstalling some dpkg files but as you can tell I’m pretty new to this.
This is my error log
Here is the result of mount | grep proc
$ sudo mount | grep proc proc on /proc type proc (rw,nosuid,nodev,noexec,noatime) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
1 Answer 1
There can be Multiple Solutions for the Above
1. Reconfiguring the dpkg Package
2. Force Install the Troublesome Package
3. Purge the Bad or Corrupted Software Package
4. Remove all the Files Associated with the Package
Lastly, you can manually remove all the associated with the troublesome package. First, you need to find these files which are located in the /var/lib/dpkg/info directory.
After listing the files, you can move them to the /tmp directory.
sudo mv /var/lib/dpkg/info/package-name.* /tmp
Finally, update the package lists.
And then try to reinstall your Package.
The Error You are getting is Mysql is unable to install coz port 3306 is already in use.
E: sub-process /usr/bin/dpkg returned an error code (1) while updating php
I tried to update php to php5 and getting below errors.
I am getting below error when I tried removing the previously installed versions and packages.
1 Answer 1
You have obviously three (!!) versions of apache installed at the same time (or «only» two, and you’re attempting to add a third one): v2.2.22, v2.4.17 and v2.8. This is not recommended at all and even prone to errors respectively server malfunction!
You should either stick strictly to one of the three versions of apache you have and uninstall all remaining apache versions (i. e. the 2.2.22 one and the 2.4.17 from Ubuntu Precise Pangolin):
(try to enter apa and then use Tab key to select the correct package name)
Your system seems pretty messed up with this weird jumble of apache versions.
Sub-process /usr/bin/dpkg returned an error code (1) никак не решить проблему
Linux 3.2.0-4-amd64 #1 SMP Debian wheezy 3.2.63-2+deb7u1 x86_64 GNU/Linux
при использовании aptitude, apt-get, dpkg ругается
«dpkg: ошибка при обработке параметра firefox-mozilla-build (—configure): пакет firefox-mozilla-build не готов к настройке настройка невозможна (текущее состояние: «half-installed») При обработке следующих пакетов произошли ошибки: firefox-mozilla-build E: Sub-process /usr/bin/dpkg returned an error code (1)»
помогите разобраться, перерыл много информации по данному вопросу, гугл не помог, в частности http://kubuntu.ru/node/5124
также пробовал удалять из /usr/lib все что связано с firefox-mozilla-build
для начала export LC_ALL=C и еще разок введи ту же команду
Скорее всего упал post-install скрипт, они лежат в /var/lib/dpkg
Удали firefox-mozilla-build, если не нужен. Если нужен, разбирайся почему у него post-install не работает.
«root@stdfx:/home/danya# apt-get remove firefox-mozilla-build Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово Пакеты, которые будут УДАЛЕНЫ: firefox-mozilla-build обновлено 0, установлено 0 новых пакетов, для удаления отмечено 1 пакетов, и 0 пакетов не обновлено. не установлено до конца или удалено 1 пакетов. После данной операции, объём занятого дискового пространства возрастёт на 0 B. Хотите продолжить [Д/н]? Д dpkg: ошибка при обработке параметра firefox-mozilla-build (—remove): Пакет абсолютно неработоспособен — перед удалением его следует переустановить.»
попробовал, вот выхлоп:
«root@stdfx:/home/danya# export LC_ALL=C root@stdfx:/home/danya# apt-get upgrade Reading package lists. Done Building dependency tree Reading state information. Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/44.5 MB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? Y dpkg: error processing firefox-mozilla-build (—configure): package firefox-mozilla-build is not ready for configuration cannot configure (current status `half-installed’) Errors were encountered while processing: firefox-mozilla-build E: Sub-process /usr/bin/dpkg returned an error code (1)»
NeutralEvil
New Member
This is my first post because hours of Googling didn’t help. I tried to upgrade and everything still worked until a recent power outage. Now nothing is starting.
Errors were encountered while processing:
pve-cluster
pve-manager
proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)
When I try to start a VM
root@proxmox:
# qm 102 start
ipcc_send_rec[1] failed: Connection refused
ipcc_send_rec[2] failed: Connection refused
ipcc_send_rec[3] failed: Connection refused
Unable to load access control list: Connection refused
NeutralEvil
New Member
bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1
zfsutils-linux: 0.7.3-pve1
Alwin
Proxmox Staff Member
Best regards,
Alwin
NeutralEvil
New Member
This is what happens. I’ve tried to reinstall the packages and they fail.
Nov 10 10:53:18 proxmox systemd[1]: Starting The Proxmox VE cluster filesystem.
Nov 10 10:53:26 proxmox pmxcfs[9997]: [main] crit: Unable to get local IP address
Nov 10 10:53:26 proxmox systemd[1]: pve-cluster.service: Control process exited, code=exited status=255
Nov 10 10:53:26 proxmox systemd[1]: Failed to start The Proxmox VE cluster filesystem.
Nov 10 10:53:26 proxmox systemd[1]: pve-cluster.service: Unit entered failed state.
Nov 10 10:53:26 proxmox systemd[1]: pve-cluster.service: Failed with result ‘exit-code’.
dpkg: error processing package pve-cluster (—configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pve-manager:
pve-manager depends on pve-cluster (>= 1.0-29); however:
Package pve-cluster is not configured yet.
dcsapak
Proxmox Staff Member
Best regards,
Dominik
NeutralEvil
New Member
It’s possible. I’ve seen that advice before and I don’t think there’s any issues with the config from what I see. Suggestions please? (for the testing of this fix I modified the resolv.conf to only use public DNS
/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.2.9 proxmox.asdfqwer.info proxmox pvelocalhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
/etc/resolv.conf
search asdfqwer.info
nameserver 192.168.2.1
nameserver 192.168.2.99
nameserver 8.8.8.8
/etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
auto eth1
iface eth1 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.2.9
netmask 255.255.255.0
gateway 192.168.2.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet manual
bridge_ports eth1
bridge_stp off
bridge_fd 0
Alwin
Proxmox Staff Member
Best regards,
Alwin
NeutralEvil
New Member
Alwin
Proxmox Staff Member
Best regards,
Alwin
NeutralEvil
New Member
It works. I’m connected to it via ssh. But it’s configured with VMBR0 which I don’t have any experience with.
Alwin
Proxmox Staff Member
What does syslog/kernel.log show?
You can check what files do not verify with the md5sum in the deb metadata.
Best regards,
Alwin
NeutralEvil
New Member
So given the complete failure here, I’m thinking maybe wiping it and doing a fresh install?
I’ve got my qcow2 files copied offsite.
Tried to remove and reinstall the packages and it’s got more errors now.
or the configure menu option in dselect:
pve-cluster Cluster Infrastructure for Proxmox Virtual Environment
pve-manager Proxmox Virtual Environment Management Tools
Nov 15 07:37:16 proxmox systemd[1]: Starting The Proxmox VE cluster filesystem.
Nov 15 07:37:16 proxmox pmxcfs[954]: [main] crit: Unable to get local IP address
Nov 15 07:37:16 proxmox systemd[1]: pve-cluster.service: Control process exited, code=exited status=255
Nov 15 07:37:16 proxmox systemd[1]: Failed to start The Proxmox VE cluster filesystem.
Nov 15 07:37:16 proxmox systemd[1]: pve-cluster.service: Unit entered failed state.
Nov 15 07:37:16 proxmox systemd[1]: pve-cluster.service: Failed with result ‘exit-code’.
dpkg: error processing package pve-cluster (—configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
pve-cluster
root@proxmox:
1) Что поможет в 80% случаев:
Зачастую достаточно просто запросить из хранилища(репозитория) новый список пакетов:
sudo aptitude update
И установить обновления:
sudo aptitude safe-upgrade
2) Остальные «сложные» случаи:
Ну бывает что нужно переконфигурировать его, даже если он поломан или неисправен:
!ВНИМАНИЕ! Использовать осторожно!
Если и это не помогает, то смотрим что именно произошло, не боимся гуглить и так далее, например у меня было вот что:
3) Конкретные случаи:
E: Sub-process /usr/bin/dpkg returned an error code (2)
dpkg: при работе функции buffer_read(fd) произошла ошибка: копирование файла информации /var/lib/dpkg/available: Input/output error
Дааааа. Как всегда косяки, ну ничего, где-то мы такое видали. Минутный поиск по форуму сообщества и на глаза вылазит лекарство:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get update #обновление информации о пакетах.
но это при условии, что ваш файл не окажется битым, как в моём случае.
Да, чуть не забыл при внесении данного сообщения начал меня раздражать SCIM Method? он так и норовил подсунуть мне какой-нибудь арабско-еврейско-хрензнает какой шрифт. Пришлось избавится
apt-get remove scim
dpkg: не удалось обработать параметр %pack_name% (—configure):
подпроцесс post-installation script возвратил код ошибки 1
При обработке следующих пакетов произошли ошибки:
%pack_name%
E: Sub-process /usr/bin/dpkg returned an error code (1)
В таком случае можно удалить пакет через dpkg:
3) в списке файлов пакета %pack_name% отсутствует завершающий символ новой строки
Я гуглил много, оказалось решение очень простое:
sudo kate /var/lib/dpkg/status
ПОДРОБНАЯ ИНФОРМАЦИЯ о dpkg на русском можно глянуть тут: тыц
Если нада, можно сюда скопипастить, но не думаю что нужно.
Проапгрейдил, исправил бОльшинство орфографических ошибок, привёл всё к единому формату. Любые дополнения приветствуются. В данный момент ищутся любые другие ошибки в dpkg, которые решаются способами, которых тут ещё нет.
Ну и спасибо баламутику за баламутивание 8)
Что означает ошибка при установке mysql-server?
Debian GNU/Linux 8.7 (jessie)
Хочу установить пакет mysql-server, выполняю команду:
# apt-get install mysql-server
В результате получаю ошибку:
Что эта ошибка означает, и как ее побороть?
У меня эксперементальная система, поэтому можно удалять/устанавливать все что угодно, критических данных для потери нет.
Проблема была в том что в системе были остатки от старых установок других БД, таких как MariaDB, Percona, MySQL. И хотя все предыдущие перечисленные БД были удалены с помощью apt purge, в системе всеравно кое где остались некоторые файлы/директории/скрипты от этих БД. И эти «остатки» каким то образом конфликтовали при новой установки MySQL.
Поэтому я решил эту проблему так:
Но самое главное, ищем и удаляем остатки:
sudo locate mysql
Эта команда выдаст список оставшихся после удаления файлов/директорий/скриптов прошлых БД. Всех их тоже надо удалить.
После этого можно устанавливать MySQL как обычно:
sudo apt install mysql-server mysql-client
Все должно пройти ОК, без всяких Errors.
Thread: E: Sub-process /usr/bin/dpkg returned an error code (1)
Thread Tools
Display
I am trying to use the command
and it keeps returning with this error:
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
Come back again if that does not help.
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
Hi ajgreeny,
Thanks for the reply. I did both commands and the second command outputted this
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
It should have been just linux-image 4.4.0-59-generic and linux-image 4.4.0-62-generic without the ending part of _4.4.0-62.83_amd64.deb of each of those.
Sorry about that so try again; I am assuming from your comment that the initramfs-tools did reinstall OK?
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
Hi ajgreeny,
I tried the same commands again but without the ending part of _4.4.0-62.83_amd64.deb.
Sorry I am very newbie at this, and have never done this before.
Thanks for the reply.
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
I will actually post more of the error, sorry I cut it in half.
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
OK ajgreeny,
I have gotten somewhere with your previous post;
Does this provide any more/enough information?
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
before trying all those other commands, as it looks as if you have not got the most recent package list in your system and therefore it is possible the OS is not fully updated.
Run the update/upgrade command and then try the other commands again.
Once again, sorry for that omission, but I assumed, probably wrongly, that you would do that automatically.
That is one of the problems of being a long time Ubuntu user; I tend to forget that new users will not do this if not told to do so.
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
It’s okay haha. I am only 14 and trying to learn it so I can hopefully do something with my life lol.
Anyways, I do that and it outputs yet again ANOTHER error (ffs):
E: Sub-process /usr/bin/dpkg returned an error code (1) #1
Comments
aysegulucar2016 commented May 3, 2018
I am using jetson Tx1 ( 64-bit L4T 24.2 (Ubuntu 16.04 based) operating system on the NVIDIA Jetson TX ) and am instaling turtlebot. However I received a lot of errors. Could you please help me?
The text was updated successfully, but these errors were encountered:
jetsonhacks commented May 3, 2018 •
How did you install librealsense? Does the camera work with the Intel tools? Which RealSense camera are you using?
aysegulucar2016 commented May 4, 2018 •
I am not using real sense camera. I have kinect. I did not install real sense camera.
I tried to install turtlebot. Now at the other all installations not turtlebot, the same error appears.
jetsonhacks commented May 4, 2018
It looks like they added support for the RealSense cameras a year after these scripts are written. If I am reading the package correctly, you should be able to remove the line:
In the file turtlebot_bringup/package.xml
and then rebuild everything.
aysegulucar2016 commented May 4, 2018 •
Many thanks for reply. I remeoved realsense_camera
in the file turtlebot_bringup/package.xml.
However, how and in which folder will I make the rebuild process? I think that I dont understant exactly.
I dont want to distrupt the other softwares in TX1.
jetsonhacks commented May 4, 2018
/jetsonbot
$ source devel/setup.bash
$ catkin_make
These are elementary ROS commands which you should become familiar.
aysegulucar2016 commented May 5, 2018 •
Many thanks for all replys.
I remeoved realsense_camera in /opt/ros/kinetic/share/turtlebot_bringup/package.xml
I did the below commands also.
$ cd
However, I received same error. Even I am receiving same error runnning sudo apt-get upgrade even.
Косяки dpkg
Ошибка dpkg. С которой, рано или поздно, сталкивается каждый
Пример возникновения ошибки раз
При обновлении Debian7 оборвалась ssh сессия, после переподключения и повторного запуска обновления вылезла ошибка:
Пример возникновения ошибки два
Произошла так же при обновлении. Подключал бэкпорты, уже не помню что ставил, и забыл отключить, пытаясь из них них же обновиться система выдала следующее:
Собственно, в первую очередь надо закомментить все левые репы и сделать apt-get update
Затем удалить всю информацию о сломанных пакетах (только о сломанных. Не вздумай удалять все, сделав rm /var/lib/dpkg/info/*):
Наконец, почистить неверные зависимости от бэкпортов:
И починить зависимости:
Похожие записи
Комментарии к посту “ Косяки dpkg ”
Спасибо тебе, добрый человек, что не поленился написать. полночи ломая голову что от меня хочет dpkg
Зачем так то:
rm /var/cache/debconf/*.dat
По идее, при разрыве SSH сессии завершаются все созданные пользователем процессы, следовательно лок файл остается, хотя процесса, который залочил данный файл, уже не существует.
Очень благодарен! Спас мне сегодняшний день! Респект и уважуха! Себе в мемориз!
после запуска команды: apt-get autoremove
вылетает:
dpkg: ошибка при обработке архива /var/cache/apt/archives/apport_2.20.1-0ubuntu2.5_all.deb (—unpack):
подпроцесс новый сценарий pre-removal возвратил код ошибки 1
Просто очистите каталог /var/cache/apt/archives/
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Будут установлены следующие дополнительные пакеты:
apport
Пакеты, которые будут обновлены:
apport
обновлено 1, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 256 пакетов не обновлено.
не установлено до конца или удалено 49 пакетов.
Необходимо скачать 120 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 0 B.
Хотите продолжить? [Д/н] Д
Пол:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apport all 2.20.1-0ubuntu2.5 [120 kB]
Получено 120 kБ за 2с (55,2 kБ/c)
dpkg: предупреждение: список файлов пакета «python-py» отсутствует; предполагаем, что на данный момент у пакета нет установленных файлов
dpkg: предупреждение: список файлов пакета «apport-gtk» отсутствует; предполагаем, что на данный момент у пакета нет установленных файлов
(Чтение базы данных … на данный момент установлено 352182 файла и каталога.)
Подготовка к распаковке …/apport_2.20.1-0ubuntu2.5_all.deb …
File «/usr/bin/pyclean», line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: предупреждение: подпроцесс старый сценарий pre-removal возвратил код ошибки 1
dpkg: попытка использовать сценарий из нового пакета …
File «/usr/bin/pyclean», line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: ошибка при обработке архива /var/cache/apt/archives/apport_2.20.1-0ubuntu2.5_all.deb (—unpack):
подпроцесс новый сценарий pre-removal возвратил код ошибки 1
Traceback (most recent call last):
File «/usr/bin/pycompile», line 35, in
from debpython.version import SUPPORTED, debsorted, vrepr, \
File «/usr/share/python/debpython/version.py», line 24, in
from ConfigParser import SafeConfigParser
ImportError: No module named ‘ConfigParser’
dpkg: ошибка при очистке:
подпроцесс установлен сценарий post-installation возвратил код ошибки 1
При обработке следующих пакетов произошли ошибки:
/var/cache/apt/archives/apport_2.20.1-0ubuntu2.5_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Пробовал ставить «python-py», ошибка такая же. Что я не так делаю?
Вероятно я опоздал с ответом. Сам с подобным не сталкивался, но в инете много чего можно найти по запросу «File «/usr/bin/pyclean», line 63 except (IOError, OSError)»
[RESOVLED] E: Sub-process /usr/bin/dpkg error code (1)
Newb to Linux here and getting very frustrated. I had OMV all set up and running SAB, Sickbeard and Couch Potato with a Greyhole pool and tried to set up Headphones, as it looked useful. After it upgraded to the latest version the Apply bar is yellow and clicking on Apply just generates an error. I also can’t get the Sickbeard web interface to load either, don’t know uf that is just coincidence or is linked.
I have run the command to remove headphones and get the following output
So it seems the uninstall is not working
In webgui I have the yellow apply bar which won’t go away. When I click Apply I get error
Failed to execute command ‘export LANG=C; invoke-rc.d ‘headphones’ stop 2>&1′: Stopping headphones No process in pidfile ‘/var/run/headphones.pid’ found running; none killed. invoke-rc.d: initscript headphones, action «stop» failed.
Details shown below
There are now 2 entries for Headphones in Services on the web gui
I hope someone can help as this is driving me crazy.
«Well. lately this forum has become support for everything except omv» [. ] «And is like someone is banning Google from their browsers»
Only two things are infinite, the universe and human stupidity, and I’m not sure about the former.
Upload Logfile via WebGUI/CLI
#openmediavault on freenode IRC | German & English | GMT+1
Absolutely no Support via PM!
Tried that and still got an error:
Whats the output of:
PS: Please post the output into codeboxes.
«Well. lately this forum has become support for everything except omv» [. ] «And is like someone is banning Google from their browsers»
Only two things are infinite, the universe and human stupidity, and I’m not sure about the former.
Upload Logfile via WebGUI/CLI
#openmediavault on freenode IRC | German & English | GMT+1
Absolutely no Support via PM!
The second command seems to do nothing
Didn’t know how to do code boxes, switched from quick reply and there it is lol. Thanks for the help
The second command seems to do nothing
Didn’t know how to do code boxes, switched from quick reply and there it is lol. Thanks for the help
Let’s try to unintall and reinstall again.
Give results of this command:
OK I did that and got the following output. Went into the webgui and clicked update in the yellow bar and it completed with no errors.
I don’t think I’ll risk enabling or uninstalling Headphones again. Don’t really need it but it’s doing no harm sitting there. Maybe when I can get some kind of backup and restore working I’ll have another go
Thanks a lot for that you saved my sanity. Only problem I have now is no web interface for Sickbeard, it just says «This webpage not available». It was working fine before I enabled Headphones
Thanks again for the help, you really know your stuff
No problem man.
Thread: E: Sub-process /usr/bin/dpkg returned an error code (1)
Thread Tools
Display
E: Sub-process /usr/bin/dpkg returned an error code (1)
Edit: i see that «No space left on device» and checkte, that there are 80GB on the File System left
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
A Reboot may clear the problem.
if not try this command in the terminal.
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks for the quick response!
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
post the output of:
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
Hello!
you can find a txt. attachement with the results to these codes and the requested ones
the answers to the requested code is:
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
So, your current base kernel in use is 4.4.0-64-generic
so lets remove 4.4.0-21-generic
$ sudo apt upgrade && sudo apt dist-upgrade
E: Sub-process /usr/bin/dpkg returned an error code (1) #1622
Comments
flamecopper commented Jan 20, 2017
Linux ECOPSGN102 3.4.0+ #1 PREEMPT Thu Aug 1 17:06:05 CST 2013 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered:
aseering commented Jan 22, 2017
Your environment is configured in an unusual way; I’m trying to understand it: Your system is stuck installing a very new third-party bash package. (Or perhaps you are attempting to test a very early / unsupported pre-release version of Ubuntu Zesty? Either way, it’s not a package that’s available for stock Ubuntu Linux, nor for stock WSL.) I’m trying to figure out where it’s coming from, and whether it’s most likely a WSL bug or limitation or more likely an issue with the package.
therealkenc commented Jan 22, 2017 •
I haven’t tried to repro (no steps were actually provided), but @aseering’s «a very new third-party bash package» comment was a good tip-off. The invalid argument is probably #1005 (message), which causes known problems with locale. Some discussion in #482 (message).
ahennar commented May 11, 2017
I faced with the same issue. Is there a way to fix it?
bash:
Installed: 4.3-15ubuntu1
Candidate: 4.4-2ubuntu1
Version table:
4.4-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu zesty/main amd64 Packages
*** 4.3-15ubuntu1 100
100 /var/lib/dpkg/status
noahzaozao commented Jun 2, 2017 •
$ apt-cache policy bash
bash:
Installed: 4.3-7ubuntu1.7
Candidate: 4.4-2ubuntu1.1
Version table:
4.4-2ubuntu1.1 0
500 http://cn.archive.ubuntu.com/ubuntu/ zesty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ zesty-security/main amd64 Packages
4.4-2ubuntu1 0
500 http://cn.archive.ubuntu.com/ubuntu/ zesty/main amd64 Packages
*** 4.3-7ubuntu1.7 0
100 /var/lib/dpkg/statu
mikekosulin commented Apr 23, 2018
$ apt-cache policy bash
bash:
Installed: 4.3-14ubuntu1.2
Candidate: 4.3-14ubuntu1.2
Version table:
*** 4.3-14ubuntu1.2 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
4.3-14ubuntu1 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
1122Dipak commented Jun 2, 2019
apt-cache policy bash
bash:
Installed: 4.4.18-2ubuntu1.1
Candidate: 4.4.18-2ubuntu1.1
Version table:
*** 4.4.18-2ubuntu1.1 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
4.4.18-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Problem in installing packages
therealkenc commented Jun 2, 2019 •
Notice this one because of the necropost. The OP fail was:
I faced with the same issue. Is there a way to fix it?
There isn’t any idication what «it» is here, because there is no repro. If folks are still seeing fails (whatever the fail may be) with whatever folks are doing here (whatever «here» means) feel encouraged to open a new issue following the template, paying particular attention to including all CLI steps necessary to induce the fail from a clean install.
E: Sub-process /usr/bin/dpkg returned an error code (1) #1622
Comments
flamecopper commented Jan 20, 2017
Linux ECOPSGN102 3.4.0+ #1 PREEMPT Thu Aug 1 17:06:05 CST 2013 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered:
aseering commented Jan 22, 2017
Your environment is configured in an unusual way; I’m trying to understand it: Your system is stuck installing a very new third-party bash package. (Or perhaps you are attempting to test a very early / unsupported pre-release version of Ubuntu Zesty? Either way, it’s not a package that’s available for stock Ubuntu Linux, nor for stock WSL.) I’m trying to figure out where it’s coming from, and whether it’s most likely a WSL bug or limitation or more likely an issue with the package.
therealkenc commented Jan 22, 2017 •
I haven’t tried to repro (no steps were actually provided), but @aseering’s «a very new third-party bash package» comment was a good tip-off. The invalid argument is probably #1005 (message), which causes known problems with locale. Some discussion in #482 (message).
ahennar commented May 11, 2017
I faced with the same issue. Is there a way to fix it?
bash:
Installed: 4.3-15ubuntu1
Candidate: 4.4-2ubuntu1
Version table:
4.4-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu zesty/main amd64 Packages
*** 4.3-15ubuntu1 100
100 /var/lib/dpkg/status
noahzaozao commented Jun 2, 2017 •
$ apt-cache policy bash
bash:
Installed: 4.3-7ubuntu1.7
Candidate: 4.4-2ubuntu1.1
Version table:
4.4-2ubuntu1.1 0
500 http://cn.archive.ubuntu.com/ubuntu/ zesty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ zesty-security/main amd64 Packages
4.4-2ubuntu1 0
500 http://cn.archive.ubuntu.com/ubuntu/ zesty/main amd64 Packages
*** 4.3-7ubuntu1.7 0
100 /var/lib/dpkg/statu
mikekosulin commented Apr 23, 2018
$ apt-cache policy bash
bash:
Installed: 4.3-14ubuntu1.2
Candidate: 4.3-14ubuntu1.2
Version table:
*** 4.3-14ubuntu1.2 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
4.3-14ubuntu1 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
1122Dipak commented Jun 2, 2019
apt-cache policy bash
bash:
Installed: 4.4.18-2ubuntu1.1
Candidate: 4.4.18-2ubuntu1.1
Version table:
*** 4.4.18-2ubuntu1.1 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
4.4.18-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Problem in installing packages
therealkenc commented Jun 2, 2019 •
Notice this one because of the necropost. The OP fail was:
I faced with the same issue. Is there a way to fix it?
There isn’t any idication what «it» is here, because there is no repro. If folks are still seeing fails (whatever the fail may be) with whatever folks are doing here (whatever «here» means) feel encouraged to open a new issue following the template, paying particular attention to including all CLI steps necessary to induce the fail from a clean install.
Всякий блог
Блог о программировании, сетевом и системном администрировании, операционных системах Windows, Linux и электронной коммерции. В основном используется для создания быстрых заметок
Просьба оставить комментарий
Если вам понравился или не понравился топик. Я что то забыл или не дописал, то вы можете оставить свой комментарий и я постараюсь исправить это в ближайшее время.
среда, 19 февраля 2014 г.
Решение ошибки Sub-process /usr/bin/dpkg returned an error code (1)
Обычно это ошибка выскакивает в процессе обновления в автоматическом режиме, причин может быть множество, например когда основной пакет обновлен, а дополнительные пакеты не совместимы с новой версией ПО.
В моем случае было обновление OVM в Debian 6 выскакивала ошибка
dpkg: error processing openmediavault (—configure):
subprocess installed post-installation script returned error exit status 2
configured to not write apport reports
Errors were encountered while processing: openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
Решить можно следующим образом, нужно зайти в папку /var/lib/dpkg/info и удалить все похожие файлы из этого каталога, но только соответствующие точному названию, в случае с OVM было несколько ошибок подобного рода с пакетами openmediavault, openmediavault-rsnapshot и другими, следовательно удаляется только файлы соответствующие этим именам модулей.
Далее делается apt-get update и apt-get upgrade
Как исправить ошибку «E: Sub-process /usr/bin/dpkg returned an error code (2)»
После удаления файлов о статусе пакетов, либо при неожиданном прерывании процесса установки новых пакетов или обновлении системы, могут возникнуть ошибки примерно следующего вида:
Эти ошибки могут возникать при любой операции с пакетами: установке, удалении, обновлении.
Причины могут различаться, поэтому следует попробовать несколько способов исправления.
Для начала попробуйте выполнить следующие команды:
И вновь повторите операцию (установку или обновление), которая вызывала ошибку.
Если предыдущие команды не помогли, то попробуйте следующие:
Если и это не помогло, то присмотритесь внимательно к ошибке — упоминается ли в ней имя какой-либо программы (пакета)? Если да то перейдите в директорию /var/lib/dpkg/info
Теперь удалите файлы ПАКЕТА, который вызывает ошибку:
Вновь запускаем команду исправления:
Затем устанавливаем пакет по новой.
Если проблема по-прежнему осталась, то запускаем команду в режиме отладки и смотрим на выводимые сообщения:
Пакеты «застрявшие в пространстве». (E: Sub-process /usr/bin/dpkg returned an error code (1))
Проблема с пакетами которые даже при удалении остаются. (их ошибка уж точно) Так же не позволяют ничего устанавливать, да и вообще хоть как-то действовать с apt-get, так же пробовал aptitude (так же и им пытался их выковырять). Читал разные решения этой проблемы, но к сожалению ничего не помогло, а может просто упустил что, в общем надеюсь на вашу помощь.
Linux com512 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux
Ещё такая ошибка в синаптике. Но я вроде близок к разгадке.
Надеюсь мой опыт пригодиться кому-то в столь странной и (вроде как) редкой ситуации.
Fix “Sub-process /usr/bin/dpkg returned an error code (1)” In Ubuntu
Today I tried to upgrade my Ubuntu 20.04 LTS desktop and I encountered with this error – “Sub-process /usr/bin/dpkg returned an error code (1)”. It is one of the common issue in Ubuntu and other DEB-based systems. This usually happens due to a failed application installation, or if the dpkg package installer becomes corrupted or interrupted in mid-way while installing a package.
Here are the commands I tried to upgrade my Ubuntu desktop:
And… here is the sample error message:
Fix “Sub-process /usr/bin/dpkg returned an error code (1)” In Ubuntu
If you encountered with an error like above, worry not! Here, I have given a few workarounds to solve “Sub-process /usr/bin/dpkg returned an error code (1)” issue in Ubuntu and its variants such as Linux Mint, Pop OS.
Solution 1 – Reconfigure dpkg database
If the package installation process is stopped or interrupted in mid-way, the dpkg database might be corrupted. Reconfiguring dpkg database may solve this issue.
To reconfigure dpkg database, simply run:
This command will try to fix the corrupted dpkg database and then reconfigure all broken packages. This command usually fixes the dpkg returned an error code (1) problem. If it is not solved for any reason, follow the subsequent solutions.
Solution 2 – Force install the application
If the first method didn’t work, run the following command to perform force install:
If these two solutions didn’t help and the issue still persists, try the next solution.
As you see in the error message (the last two lines), the eog package is causing this error.
For those wondering, eog (short for Eye of GNOME) is the official and default image viewer for the GNOME desktop environment. So this package is problematic and doesn’t let me to upgrade my Ubuntu.
When you install a package, it will be downloaded and saved in the cache folder /var/cache/apt/archives/.
To fix this error, remove the cached package using command:
Replace eog_3.36.2-0ubuntu1_amd64.deb with your package.
Clean the package cache folder:
Update the source lists:
Upgrade your system:
Finally, get the fresh package from official repositories and reinstall it like below:
This solution worked for me.
Solution 4 – Remove the problematic application
This should be your last resort. If none of the above methods help, remove the problematic package from your system like below:
This command will remove eog with all its configuration files from the system.
And also find and remove all files associated with the broken package.
To find all files related to a package, run:
Sample output:
Remove them manually.
That’s it. At this stage, any one of the these four solutions should have helped you to fix “Sub-process /usr/bin/dpkg returned an error code (1)” in Ubuntu and other DEB-based systems.
If your Ubuntu system is completely broken and you can’t log into it anymore, refer the following guide to get it fixed.
Обработка остановлена из-за слишком большого количества ошибок.
Толком не обновился на Ubuntu 14.04 по причине возникновения ошибок. Решил продолжить обновление, делаю:
sudo apt-get upgrade
Всё заканчивается так:
Обработка остановлена из-за слишком большого количества ошибок. E: Sub-process /usr/bin/dpkg returned an error code (1)
Настраивается пакет gconf2-common (3.2.6-0ubuntu2) … dpkg: error processing package gconf2-common (—configure): подпроцесс установлен сценарий post-installation возвратил код ошибки 10 dpkg: зависимости пакетов не позволяют настроить пакет gconf-service-backend: gconf-service-backend зависит от gconf2-common (= 3.2.6-0ubuntu2), однако: Пакет gconf2-common пока не настроен.
dpkg: error processing package gconf-service-backend (—configure): проблемы зависимостей — оставляем не настроенным Настраивается пакет samba-common (2:3.6.18-1ubuntu3.3) … dpkg: error processing package samba-common (—configure): подпроцесс установлен сценарий post-installation возвратил код ошибки 10 Настраивается пакет kdelibs-bin (4:4.13.3-0ubuntu0.1) … Настраивается пакет libkparts4 (4:4.13.3-0ubuntu0.1) … dpkg: зависимости пакетов не позволяют настроить пакет smbclient: smbclient зависит от samba-common (= 2:3.6.18-1ubuntu3.3), однако: Пакет samba-common пока не настроен.
И т.д. Куча таких ошибок и в конце: Обработка остановлена из-за слишком большого количества ошибок.
Thread: E: Sub-process /usr/bin/dpkg returned an error code (1)
Thread Tools
Display
«I took the red pill, but I installed the blue Linux»
Archlinux user, using it right now.
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
Looks like you’ve got a couple of packages which aren’t configuring properly.
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried that and still the same
BTW this is kubuntu
«I took the red pill, but I installed the blue Linux»
Archlinux user, using it right now.
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
navigate via nautilus to: /var/lib/dpkg/info
do a search on: python-gst0.10 python-rdflib
(search-option: above-right on your screen.)
remove them.
close nautilus
event.: sudo apt-get install python-gst0.10
sudo apt-get install python-rdflib
thank you kellemes, the first link fixed it
«I took the red pill, but I installed the blue Linux»
Archlinux user, using it right now.
Re: E: Sub-process /usr/bin/dpkg returned an error code (1)
navigate via nautilus to: /var/lib/dpkg/info
do a search on: Python-gst0.10 python-rdflib
(search-option: Above-right on your screen.)
remove them.
Close nautilus
tnank you ssssooooo much! I did have problem with opera and gnome-colors-common
I did this command first
sudo apt-get install r-base
So, I killed sudo apt-get install r-base
Then this is what I got after I ran this command rawiii@rawiii-K55A:
I could use the gksudo nautilus but I don’t know which files to delete?