Ubuntu Servers :: E: Sub-process /usr/bin/dpkg Returned An Error Code (1)
Dec 19, 2010
I have a little home server running server 8.04 and decided to check for upgrades. One of the upgrades was a new kernal update. It was able to download the update, but errors on uncompressing it. I have even shutdown the server and restarted it. Still no luck.
Here is the screen log from the update process:
(Reading database ... 49993 files and directories currently installed.)
Preparing to replace linux-image-2.6.24-28-server 2.6.24-28.80 (using .../linux- image-2.6.24-28-server_2.6.24-28.81_i386.deb) ...
Done.
Unpacking replacement linux-image-2.6.24-28-server ...
I think that my computer crashed one time, while I was in middle of installing some new software, and it seems like it have made "dpkg" confused with itself - it thinks, that I still need to install "Wine", but it is allready installed, so everything is allright. But everytime, when I am upgrading or installing any kind of software, it give me this error (just an error, everything still works and installs fine):
I'm trying to customize my BackTrack4 image so I can use the live disk with my ati graphic card. While trying to put the drivers with the apt-get install ati-driver command, I get the following message:
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: ati-driver
Thought I could just place a hard drive with a preloaded Ubuntu install from another machine (a loaner machine) into this one; change a few drivers and be on my way. Too many errors to count. ALSA; Jack; LiveTex all cratered and I'm tired of fighting this. I've spent more than two days trying to get stuff working and if there's anything I've learned from years of experience there's a time to cut bait and run.
A clean install on the actual hardware I'm using has to be better than the hodge podge I have now.What I would like from the community is recommendations for what to do AFTER the install.
1) where can I find the most up-to-date comprehensive and exhaustive list of repositories for the Synaptic Package Manager?
2) I like to do sound and video processing. I would like to have the program applications Qsynth, Virtual Midi Keyboard, Muse Score, Csound, GNU Denemo, and many others that either fail to start or produce no sound to work. What, besides the programs need to be loaded in order to make these work?
3) A helpful list of recommendations on what to install along with order preference. In other words 'this needs to be done before this...' on a new Ubuntu install.
In case anyone's interested: Here's a small list of some of the errors I currently have. AlsaModularSynth - Could not open file.Qsynth1 - Failed to create the audio driver (jack) / Jack server not running.
Errors were encountered while processing:
texlive-latex-base-doc E: Sub-process /usr/bin/dpkg returned an error code (1)
Qtractor - The audio/MIDI engine could not be started. Make sure the JACK audio server (jackd) and/or the ALSA Sequencer kernel module (snd-seq-midi) are up and running and then restart the session.
apt-get install alsa-utils - Errors were encountered while processing: texlive-latex-base-doc E: Sub-process /usr/bin/dpkg returned an error code (1)
Jack configuration files not found; the list is endless. Plus many errors trying to get texlive to work.
Since I'm quite new to Linux I wonder what "Sub-process /usr/bin/dpkg returned an error code (1)" mean ?? Is it RTFM/read the damn logs at /var/log or does someone have an answer to this ?
When trying to install php5 I got the following result. Tried to apt-get clean, autoclean, remove --purge then reinstall the mentioned packages without any success.
dpkg --configure -a didn't get any better result.
Code: Select allsudo apt-get install php5 Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les paquets supplémentaires suivants seront installés : libapache2-mod-php5 php5-cli php5-common
I'm tried to install bandwidthd on Ubuntu 9.10 and keep getting the following error.I have been looking around for a while and have been unsuccessful in finding a answer.
HTML Code: $sudo apt-get install bandwidthd Reading package lists... Done
The problem emerged when I started to make the internal microphone and external speakers work [URL]. In either kernel 2.6.32-24 or 2.6.35-15 - cannot install any package with apt-get. Here is the error I get when installing just anything [URL]. Basically, here is it:
Code: ERROR: Build failed. Please review the build log at /tmp/alsa-driver-linuxant.3620.log dpkg: error processing alsa-driver-linuxant (--configure): subprocess installed post-installation script returned error exit status 2 Setting up libxslt1-dev (1.1.26-1ubuntu1) ... Errors were encountered while processing: alsa-driver-linuxant E: Sub-process /usr/bin/dpkg returned an error code (1)
simple scan error as follows: Failed to save file ImageMagick returned error code 11 Command line: convert -adjoin /tmp/simple-scan-DA9MBV.jpg /tmp/simple-scan-XCK4BV.jpg /tmp/simple-scan-NZVYBV.pdf Stdout: Stderr: using karmic note: I have apparmor extra profiles installed but didn't notice one that related to simple scan or imagemagick. Red herring or not?
Iam trying to burn wave files to a cd that i ripped from a cd when i try burning to gets to 300 meg and stops with these errors CD RECORD RETURNED AN UNKNOWN ERROR (CODE 254) SOMETIMES USING TAO WRITING MODE SOLVES THIS ISSUE Using ubuntu 10.04
Im experiencing issues updating. here is the error update is giving me:Reading database....60%dpkg: unrecoverable fatal error, aborting:files list file for package 'liborbit2' is missing final newlineE: Sub-process /usr/bin/dpkg returned an error code (2)A package failed to install. Trying to recoverNothing happens at this point.
I was triyng to install Debian on a AMD K6-2. I use debootstrap, and installed Lenny, with a kernel linux-image-2.6.26-2-486.
After that apt-get update and apt-get upgrade and I get:
The following packages will be upgraded:
Since release 150, udev requires that support for the CONFIG_SYSFS_DEPRECATED feature is disabled in the running kernel.
Please upgrade your kernel before or while upgrading udev.
AT YOUR OWN RISK, you can force the installation of this version of udev WHICH DOES NOT WORK WITH YOUR RUNNING KERNEL AND WILL BREAK YOUR SYSTEM AT THE NEXT REBOOT by creating the /etc/udev/kernel-upgrade file. There is always a safer way to upgrade, do not try this unless you 0understand what you are doing!
And similar messages appears trying to install xfce4...
I recently upgraded a couple of my systems from 8.04 LTS to 10.04 LTS. I had no issues with nfs prior to the upgrade. After the upgrade I am occasionally seeing the following messages:
mspfiles being the share name.
This never used to happen on 8.04. Generally the error "Socket operation on non-socket" points to a coding error. Could this be a bug in the kernel? Has anyone else come across this?
The only other recent reference that I found to the same errors was in this comment on the OpenSUSE bugtracker: [url]
It seems as though it is handling loss of connectivity less gracefully than it did before.
I can't really upgrade any more of my servers until this is fixed as we are heavily dependant on nfs.
When I tried to upgrade my xubuntu 10.04 , I got this error
dpkg: parse error, in file '/var/lib/dpkg/available' near line 2 package 'x11proto-core-dev': value for `status' field not allowed in this context E: Sub-process /usr/bin/dpkg returned an error code (2)
Attempting to install Abyss Web Server on my 64 bit laptop. i have done mkdir ABYSS to create the ABYSS directoty to install the server to. Command cd ABYSS then "tar xzfm Abyss Web Server installation package" as per instructions. Result tar (child) Abyss cannot open; No such file or directory tar: (child) Error is not recoverable: exiting now tar Child returned status 2 tar: Error is not recoverable: exiting now likely .
when i try to use apt an error occurs: dpkg: parse error, in file '/var/lib/dpkg/status' near line 27317 package 'virtualbox-3.0': error in Version string `3.0.4-50677_Debian_lenny': invalid character in revision number E: Sub-process /usr/bin/dpkg returned an error code (2)
i tried to :
1- replace the file status with status-old 2- replace it with all the backups located in /var/backups/
I'm writing a sort of toy shell using fork() and execv(). It runs smoothly enough untill the user enters an invalid command at which point the program hangs, so I need a way to check if the program loaded using execv returned correclty or not in the parent process and kill it if it didntI tried writing stderr to a text file to see if something whent wrong but doesnt really work out. Try running ./digenv GDM -i -Q for instance. (-Q is an invalid option for grep which the program runs at a certain point).Heres the code:
I keep getting this error when I try to install Adobe flash player E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. E: _cache->open() failed, please report. I had it installed just fine, then i restarted my computer and its gone. .
I'm using 10.10 and from today I'm getting this error Quote:dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. When I'm trying to install any software using
Code: sudo apt-get <sw-name> Also I'm unable install using "Ubuntu Software Center", showing unhandleable error. Here is the details: Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 769, in simulate return self._simulate_helper(trans, status_path)
I'm having some issues building deb packages. dh_make --createorig behaves as expected, but when I attempt to buld the package with dpkg-buildpackage -rfakeroot the build dies on a dpkg-source error.
Code: My First Line My Second Line ::::While Loop::: Program:
Code: while read line do echo "$line" done < Filename.txt output:
Code: My First Line My Second Line
Is it possible to use for loop to get the same output. I have tried executing below code but I get every word of my file being displayed one below above.Is there any way I can modify the for loop code to get the output returned by while loop?
:::For Loop::: Program:
Code: for line in $(cat Filename.txt) do echo $line done output:
After I got the OS up and running (v9.10), I was prompted to download and install some updates. The download is complete, but when I try to install the updates, I receive the following message. What should I do?
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. E: _cache->open() failed, please report.
I installed the software Ubuntu Tweak yesterday and I was satisfied of how it worked. today, surfing the internet I was hoping to find a solution to a couple of problems that I have: the computer sometimes get stuck when opening videos or photos - I can't see streaming TV. when the internet browser was asking me to install plug-in in order to show the videos I tried to install them but errors occurred.
so I followed the instruction in [URL] (many of these things didn't work and the terminal was showing error messages...) now after rebooting I have got the unity 2D I think (which is fine as I can't notice great differences) but I can't install the updates from Ubuntu Tweak the error message is: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. E: _cache->open() failed, please report. how can I fix it and get my video codecds?
I'm trying to update Kubuntu 11.04 here is my error: p, li {white-space: pre-wrap;} E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. here is what i have tried to fix it:
I want to install gcc on my Pyramid linux which is debian based. I downloaded gcc.deb. When I want to install this file, it gives me "dpkg command not found" error! I also get this error when I want to install other .deb files using dpkg command " dpkg -i finename.deb. I did some research and it seams that I should install package on my system, but package file is .deb file and I can't install .deb file! What should I do to solve the problem??? Should I install any thing on my system to install .deb files??