Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
When I open the Synaptic Package Manager, I get the following message: "E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem."
So I ran the command, and it returns: "dpkg: parse error, in file `/var/lib/dpkg/updates/0000' near line 1:
newline in field name `#!/bin/sh'"
And when I try to run the Update Manager, I get this message: "Only one software management tool is allowed to run at the same time
Please close the other application e.g. 'aptitude' or 'Synaptic' first."
But of course I don't have any of those tools open when I get that error.
The last significant thing I did, was create a shutdown/reboot script that removes a mysteriously reappearing line from "/etc/fstab", that tries to mount sda1. Considering that, I inspected the fstab file with the version I had backed up, and it appeared to be the same. Besides the line that I intended to remove was gone.
As an experiment, I moved the 0000 file that I was getting the parse error on, to a different directory. The result was just the exact same parse error for 0001. So I moved 0000 back.
The distro I'm using is Ubuntu 5.10 Breezy Badger. So please help if you can. I can't bear the thought of reinstalling ubuntu, considering the updates took about 18 hours to download. Yeah, I live in an area that has no other option but dial up.
Here is also a copy of 0000 and fstab.
# Automatically added by dh_makeshlibs
if [ "$1" = "remove" ]; then
# End automatically added section
to see if any synaptic or apt apps are running..if they are, kill them. After you're sure none is running, clear the local cache of packages. To make sure, use apt-get to fix possible broken dependencies and after this run apt-get update and try installing some package again..
I had this once when I happened to ctrl+c while apt was installing something..I believe something was left half installed, it made apt crazy and I had to do some tricks with apt-get to get it back to work. I'm not sure but I probably had to manually remove some package and reinstall it again to get this work..it's been so long ago, though.
I ran "ps -e | grep syn" and "ps -e | grep apt" neither returned anything. I cleared the package cache by running "apt-get clear" and by using the settings under synaptic. I tried to run "apt-get check" to see if it found any broken packages, but it just returned that parse error again.
So no luck. But you might be on to something. Once I thought about it, a couple days before I installed the script, I was trying to install the drivers for a HCF Rockwell/Conexant modem. The install eventually failed with a bunch of permission denied errors. And the package is definitely partially installed, cause I get a bunch of failures related to that package, during boot up. So would you suggest that I do a file search, and manually remove the files related to that package?
Finally, it works. I tried removing all the files that I could find related to the HCF modem, but it made no difference. So I thought, maybe if I could reinstall dpkg, I might be able to fix the problem. Of course the problem with that idea is, all of my installation apps for ubuntu were crippled. So I decided to install dpkg manually. I booted with my live cd of ubuntu 5.10, and did a file search for all file names containing the string "dpkg". Then I replaced all of those files on the hdd with the copy of the files that was loaded into memory by the live cd. It was a long painful process, especially because I made backups of the originals before I replaced them, but it mostly paid off.
Although, it did leave me with a minor new problem. Since the live cd is just like a clean install, synaptic and the update manager only shows that I have the stuff installed that you have after a clean install. It doesn't realize that I already have all the updates and and programs installed. But all those apps and updates still work. So like I said, it's kind of minor to where I was a few hours ago.
Thanks for trying to help. And if any one could give me a lead to how to fix the new minor issue, please post. If I find a solution before then, I'll post.