Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
etorixOffline
15 Post subject: 29 Sept 2010::python-apt error :: fixed  PostPosted: 29.09.2010, 00:24
Team Member


Joined: 2010-08-26
Posts: 137

Status: Offline
      Code:

subprocess installed post-installation script returned error exit status 1


so

go find /var/lib/dpkg/info/python-apt.postinst

add 'exit 0' under 'set -e' [at the top, after #!/bin/sh]

      Code:
apt-get -f install


UPDATE: fixed pkgs now in fix.main

      Code:
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
Unpacking replacement python-apt ...
Selecting previously deselected package python-apt-common.
Unpacking python-apt-common (from .../python-apt-common_0.7.98.1_all.deb) ...
Setting up python-apt-common (0.7.98.1) ...
Setting up python-apt (0.7.98.1) ...


Last edited by etorix on 30.09.2010, 17:14; edited 3 times in total
 
 View user's profile Send private message  
Reply with quote Back to top
HeSaidOffline
Post subject: RE: 29 Sept 2010::python-apt errors out  PostPosted: 29.09.2010, 02:28
Moderator


Joined: 2010-09-11
Posts: 56
Location: southwest Florida, USA
Status: Offline
Thanks, etorix.
--
Neal

_________________
Registered Linux User # 159445
aptosid 64-bit Lenovo Thinkpad Edge
aptosid 64-bit HP dv6000 laptop
aptosid 32-bit eeePC 900A
 
 View user's profile Send private message  
Reply with quote Back to top
ibgbOffline
Post subject: RE: 29 Sept 2010::python-apt errors out  PostPosted: 29.09.2010, 03:57



Joined: 2010-09-11
Posts: 42

Status: Offline
OK, here's a question....

I understand editing the postinst script because it's broken and it's the only way to get apt up and able again. But should then the package be downgraded to testing so that the package will be installed with a postinst that actually runs?
 
 View user's profile Send private message  
Reply with quote Back to top
etorixOffline
Post subject: RE: 29 Sept 2010::python-apt errors out  PostPosted: 29.09.2010, 04:26
Team Member


Joined: 2010-08-26
Posts: 137

Status: Offline
if python-apt works ok [and it apparently seems to]

why bother further?
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject: RE: 29 Sept 2010::python-apt errors out  PostPosted: 29.09.2010, 06:30



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
well, it probably is not configured right because postinst didnt run at all,
which probably also has influence on prerm and postrm
so editing these files for me is really a last resort.

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
drbOffline
Post subject: RE: 29 Sept 2010::python-apt errors out  PostPosted: 29.09.2010, 08:51



Joined: 2010-09-11
Posts: 96

Status: Offline
. . . . so holding python-apt is the right 'solution'?
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject: RE: 29 Sept 2010::python-apt errors out  PostPosted: 29.09.2010, 09:41



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
i would hold it, yes

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
goofythekillerOffline
Post subject:   PostPosted: 29.09.2010, 17:14



Joined: 2010-09-12
Posts: 10

Status: Offline
Thanks for this fix. It was getting a bit frustrating using apt-get and getting error messages about python-get. I hope this bug gets fixed in the next upgrade.
 
 View user's profile Send private message  
Reply with quote Back to top
hjtOffline
Post subject:   PostPosted: 29.09.2010, 18:50



Joined: 2010-09-11
Posts: 2

Status: Offline
thx etorix
 
 View user's profile Send private message  
Reply with quote Back to top
DonKultOffline
Post subject:   PostPosted: 29.09.2010, 19:22
Team Member


Joined: 2010-09-02
Posts: 481

Status: Offline
      goofythekiller wrote:
Thanks for this fix. It was getting a bit frustrating using apt-get and getting error messages about python-get. I hope this bug gets fixed in the next upgrade.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598432 for all the glory details.

Michael said he will upoad a fixed version soon…

This fixed upload will NOT fix broken installations. You have to apply the fix noted above by etorix if your APT is stuck. So yes, holding the currently working version until the fixed one hits the mirrors is the preferred option.

_________________
MfG. DonKult
"I never make stupid mistakes. Only very, very clever ones." ~ The Doctor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
etorixOffline
Post subject:   PostPosted: 29.09.2010, 19:29
Team Member


Joined: 2010-08-26
Posts: 137

Status: Offline
holding python-apt is the 'correct' solution



that said, python-apt seems to work normally, actually, i see no other errors
 
 View user's profile Send private message  
Reply with quote Back to top
goofythekillerOffline
Post subject:   PostPosted: 30.09.2010, 02:49



Joined: 2010-09-12
Posts: 10

Status: Offline
      DonKult wrote:
      goofythekiller wrote:
Thanks for this fix. It was getting a bit frustrating using apt-get and getting error messages about python-get. I hope this bug gets fixed in the next upgrade.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598432 for all the glory details.

Michael said he will upoad a fixed version soon…

This fixed upload will NOT fix broken installations. You have to apply the fix noted above by etorix if your APT is stuck. So yes, holding the currently working version until the fixed one hits the mirrors is the preferred option.


Cool. I believe the fix is already out. This is what I get after doing "apt-show-versions -u"
      Code:
python-apt/sid upgradeable from 0.7.98 to 0.7.98.1
 
 View user's profile Send private message  
Reply with quote Back to top
shaoOffline
Post subject:   PostPosted: 30.09.2010, 12:16



Joined: 2010-09-23
Posts: 1
Location: China
Status: Offline
Well done, it's great!
 
 View user's profile Send private message  
Reply with quote Back to top
myloOffline
Post subject:   PostPosted: 30.09.2010, 18:41



Joined: 2010-09-11
Posts: 116
Location: Wiesbaden, Germany
Status: Offline
      shao wrote:
Well done, it's great!


yes, I had the error messages also on d-u

[url="d-u mess1"]pastebin.ca/1951126[/url]
[url="d-u mess2"]pastebin.ca/1951146[/url]


I came over it by a normal d-u after today. I was told that an old script did not work, but the new one did it.
For your info.


      Code:
apt-cache policy python-apt
python-apt:
  Installiert: 0.7.98.1
  Kandidat:    0.7.98.1


EDIT:
sorry do not know, how to handle these url tags.

_________________
Regards
mylo

Linux 3.1-6.slh.1-aptosid-amd64 x86_64[2010-03 Ἀπάτη (201012262151)]
Intel Core2 Duo E6550 @ Cache/Ram 4MB/4GB nVidia G72 7300 nouveau 2*250GB
 
 View user's profile Send private message  
Reply with quote Back to top
BelaLugosiOffline
Post subject:   PostPosted: 30.09.2010, 18:51



Joined: 2010-09-11
Posts: 49
Location: Dresden / Germoney
Status: Offline
      mylo wrote:
EDIT:
sorry do not know, how to handle these url tags.


...without the quotes
      Code:
[url=foo.bar]yourtexthere[/url]

_________________
i don't have hard drives. i just keep 30 chinese teenagers in my basement and force them to memorize numbers (bash.org)
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio