Sub-Process /usr/bin/dpkg returned an error code (1)
DebianThis forum is for the discussion of Debian Linux.
Notices
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.
as this server is productive right now (running a little website) i might have to wait for the weekend here
i guess reinstalling those packages will make the website unavailable for a while
If there are no further problems it takes only 2 minutes or so. After all you are not running PHP either I think.
However, one firm recommendation. You are running a server. Use Stable for that, not Testing, not Unstable. For desktop systems it is arguable to run a less mature system, after all you want to run recent packages to be compatible with the next audio format or the newest Flash. You don't need that for a server. And now already you are experiencing problems.
I dare to add a package to a production server when I run stable. This is unthinkable in Testing or Unstable. In two months you will suddenly be confronted with a new kernel version or a new libc if you want to install an Apache extension.
Swallow hard, and re-install with Stable now you just start with this server. Usually I am against re-installing, but now you have to. Downgrading is virtually impossible. Once again, install Stable on a production server.
i thought updating with "apt-get install" only fetches the last stable versions?
and that this is very important to do once in a while due to upcoming fixes for security issues discovered or whatever
OK, I made a mistake. I thought you were the original poster. But that thread dates from 2004. The OP was taking about upgrading to Unstable etc., not you. You don't even use Debian, but Ubuntu.
anyway - "After all you are not running PHP either I think" - yes, i do run php.
and i might have to reconfigure the whole apache stuff - so this might take more than just a few hours to reinstall
i really dont look forward to it... but if there really is no alternative
If you only "remove" a package instead of "purge" it your config files should be untouched. Anyway I'm sure your have a backup of your configuration: ;-)
of course i have
but i still need to figure out how to display an offline site with "we are currently running server updates" etc if there is no apache running
any way to use a static html page on the same server? i guess not
especially as search bots might visit the website. and if they get nothing at all they might rate it down or whatever.
so a "503 Service Unavailable" would be probably a good way to signal them to come by later.
i have an A Record to my IP address of the virtual server
and my domain hoster does not provide any fallback here
[QUOTE=euromark;3810083
but i still need to figure out how to display an offline site with "we are currently running server updates" etc if there is no apache running
any way to use a static html page on the same server?[/QUOTE]
Sure, just install a very small http server like thttpd and run it while you are messing around with apache.
You deleted the pre and post install scripts. This can very easily mean that the package will not be installed properly, and it won't be removed properly if you choose to uninstall it. It is THE WRONG THING to do.
Using 'apt-get -f install' and/or 'dpkg --configure --pending' are what you should do. If your problems persist, try to read and understand the .postinst script for the problematic package and check for bugs reported against that packge. Failing that, ask for help and/or report a bug.
If you are running sid, you should be prepared to do these sorts of things.
This is where the .deb files that apt downloads are put, after installation, you can delete them, but you should do it with the command 'apt-get clean'.
Evo2.
This is useful information to resolve the times when using aptitude to update and post-installation errors creep in.
This response is directed to Evo2, in post #20 you had stated that you assumed another member had a backup copy of the config. I have to admit I am new to Linux and I am currently using backtrack 4 pre final and I am definitely curious how you go about making a backup copy of the config. Thanks in advance!!
I've had the same problem with gnokii, removig /var/lib/dpkg/info/gnokii* files didn't help. The solution was to manually adit /var/lib/dpkg/statoverride and remove faulty line, which inn my case looked like this:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ok I had the same problem but it was probably due to unfinished extraction.While the machine was installing things,it froze.But in the end it was the same message.
I fixed it.I checked the archive where downloaded debs are stored for impending installation and it was nowhere.So I downloaded the deb and installed it through GDebi.In the end it just used the newly extracted post script.
Also i have ubuntu but i reckon it can be easily applied to Debian seeing that they are similar.
Last edited by jhetfield20; 07-10-2010 at 06:20 AM.
I had a similar problem and what i found that worked for me was going into /var/lib/dpkg/info and deleting everything that had that name and you may also have to go into /var/cache/apt/archives and do the same thing. I'm fairly new to linux so if this breaks anything i am sorry. i haven't run into any problems yet that this has caused.
Thanks Ferel-Deb, worked great. Run 'sudo apt-get install -f' after you've deleted those files, then you should be sorted.
I had a similar problem and what i found that worked for me was going into /var/lib/dpkg/info and deleting everything that had that name and you may also have to go into /var/cache/apt/archives and do the same thing. I'm fairly new to linux so if this breaks anything i am sorry. i haven't run into any problems yet that this has caused.
Thanks Feral-Deb! This took care of it for me as well. Sorry for reviving such an old thread. Just trying to give credit where it was due
My issue was with gdm.postinstall ( removing from ~/info fixed it ). I use LightDM anyway. Thats what I get for tinkering with KDM / GDM LOL
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.