LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-29-2009, 09:33 PM   #16
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,189

Rep: Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037

Quote:
Originally Posted by euromark View Post
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.

jlinkels
 
Old 12-30-2009, 09:44 AM   #17
euromark
LQ Newbie
 
Registered: Dec 2009
Posts: 5

Rep: Reputation: 0
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

you say i got this wrong?
thx
 
Old 12-30-2009, 09:57 AM   #18
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,189

Rep: Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037
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.

No idea what happens in Ubuntu, sorry.

jlinkels
 
Old 12-30-2009, 02:02 PM   #19
euromark
LQ Newbie
 
Registered: Dec 2009
Posts: 5

Rep: Reputation: 0
yeah
you kinda shocked me there

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
 
Old 12-30-2009, 09:34 PM   #20
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
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: ;-)

Evo2.
 
Old 12-31-2009, 11:51 AM   #21
euromark
LQ Newbie
 
Registered: Dec 2009
Posts: 5

Rep: Reputation: 0
interesting
then it shouldn't be too difficult

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

Last edited by euromark; 12-31-2009 at 11:56 AM.
 
Old 12-31-2009, 09:58 PM   #22
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
[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.

Cheers,

Evo2.
 
Old 01-09-2010, 12:20 PM   #23
milomak
Member
 
Registered: May 2009
Posts: 123

Rep: Reputation: 18
Quote:
Originally Posted by evo2 View Post
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.
 
Old 01-13-2010, 09:23 AM   #24
zenlakin
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
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!!
 
Old 01-13-2010, 03:59 PM   #25
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hi,

Quote:
Originally Posted by zenlakin View Post
I am definitely curious how you go about making a backup copy of the config. Thanks in advance!!
Manual 'cp -r' would be a good starting point, however I use automated backups with the backuppc package.

Cheers,

Evo2.

Last edited by evo2; 06-12-2010 at 10:26 PM.
 
Old 06-11-2010, 04:03 PM   #26
tadeek
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
Hi,

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:

root gnokii 4750 /usr/sbin/mgnokiidev

good luck guys
 
Old 07-10-2010, 07:18 AM   #27
jhetfield20
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
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 07:20 AM.
 
Old 12-05-2011, 10:27 AM   #28
mpsoft.dk
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
this did the trick for me

you can delete everything from: /var/lib/dpkg/info
or find the messed up packaged... ex "uw-imapd"

$rm /var/lib/dpkg/info/uw-imapd*

and then run
$apt-get upgarde

//Martin Dahl-Larsen
 
Old 02-25-2012, 11:42 AM   #29
petemaxi
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by feral-deb View Post
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.

petemaxi
 
Old 04-13-2012, 08:48 AM   #30
pyraxiate
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
Quote:
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail returned error code 111 newlinuxgeek Linux - Software 1 02-14-2008 03:16 AM
dpkg returned an error code (1) Segmentation fault questionman Debian 6 11-02-2004 01:04 AM
Sub-process /bin/rpm returned an error code (255) during uninstall with synaptic DraaX Linux - Newbie 2 02-10-2004 03:05 AM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 07:41 PM
The program returned an error code (3) Omega Linux - Software 1 05-04-2003 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration