LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-16-2009, 04:12 AM   #1
sylar
LQ Newbie
 
Registered: Apr 2009
Location: Russia
Distribution: debian squeeze
Posts: 10

Rep: Reputation: 0
python-elementtree package problem..


i'm using debian testing, today i updated the packages .. at the end of the updating update-manager returns a error for the first time i have ever seen

anyway, now the python-elementtree package gives errors..

like ;
PHP Code:
debian:/home/sylar# apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information
... Done
0 upgraded
0 newly installed0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation0B of additional disk space will be used.
Setting up python-elementtree (1.2.6-13) ...
Usageupdate-python-modules [-v] [-cpackage_directory [...]
       
update-python-modules [-v] [-cpackage.dirs [...]
       
update-python-modules [-v] [-a|-f|-p]

update-python-moduleserror: /usr/share/python-support/python-elementtree.public is not a directory
dpkg
error processing python-elementtree (--configure):
 
subprocess post-installation script returned error exit status 2
dpkg
dependency problems prevent configuration of epiphany-extensions:
 
epiphany-extensions depends on python-elementtreehowever:
  
Package python-elementtree is not configured yet.
dpkgerror processing epiphany-extensions (--configure):
 
dependency problems leaving unconfigured
dpkg
dependency problems prevent configuration of gnome:
 
gnome depends on epiphany-extensionshowever:
  
Package epiphany-extensions is not configured yet.
dpkgerror processing gnome (--configure):
 
dependency problems leaving unconfigured
Errors were encountered 
while processing:
 
python-elementtree
 epiphany
-extensions
 gnome
E
Sub-process /usr/bin/dpkg returned an error code (1
how can i fix it

Last edited by sylar; 04-16-2009 at 01:47 PM.
 
Old 04-17-2009, 06:22 AM   #2
njekto
LQ Newbie
 
Registered: Dec 2005
Posts: 14

Rep: Reputation: 0
I've got the same problem. And it isn't only python-elementtree. It says 3 not fully installed or removed and then

Errors were encountered while processing:
python-elementtree
epiphany-extensions
gnome

it started with elementtree though
 
Old 04-17-2009, 06:57 AM   #3
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 673
Blog Entries: 11

Rep: Reputation: 36
If you read the package description for "python-elementtree" it says:

Quote:
ElementTree is included in Python 2.5, so there is no need
to install this package if you are using Python 2.5.
... so I would think that means that if you have "python2.5" that you shouldn't worry about "python-elementtree". Of course I don't use python, so I don't know if this is true. BTW, I had the same problem updating.
 
Old 04-17-2009, 07:57 AM   #4
njekto
LQ Newbie
 
Registered: Dec 2005
Posts: 14

Rep: Reputation: 0
I'm personally more worried about apt-get and dpkg than elementree. apt-get install -f doesn't help. apt-get autoremove doesn't work for me either. It seems like the elementree package is stuck somehow and can't be properly installed nor removed.

Any ideas how to remove this broken package?
 
Old 04-17-2009, 08:21 AM   #5
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,848

Rep: Reputation: Disabled
I solved this problem by removing the FILE called python-elementtree.public in /usr/share/python-support/ and creating a folder with the same name. I then installed the package with no problem at it hasn't complained since.
Cheers,
jdk

Last edited by jdkaye; 04-17-2009 at 08:23 AM.
 
Old 04-17-2009, 08:40 AM   #6
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 673
Blog Entries: 11

Rep: Reputation: 36
Quote:
Originally Posted by jdkaye View Post
I solved this problem by removing the FILE called python-elementtree.public in /usr/share/python-support/ and creating a folder with the same name. I then installed the package with no problem at it hasn't complained since.
I did this, and it seemed to work, then I thought to myself "should I copy the original python-elementtree.public back to /usr/share/python-support/ and erase the empty folder?" (because I had saved it, and it wasn't empty) but I don't know... is that a good idea? Should I just leave it with the empty folder?
 
Old 04-17-2009, 08:43 AM   #7
njekto
LQ Newbie
 
Registered: Dec 2005
Posts: 14

Rep: Reputation: 0
cheers mate! worked perfectly!
 
Old 04-18-2009, 02:05 AM   #8
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,848

Rep: Reputation: Disabled
Quote:
Originally Posted by radiodee1 View Post
I did this, and it seemed to work, then I thought to myself "should I copy the original python-elementtree.public back to /usr/share/python-support/ and erase the empty folder?" (because I had saved it, and it wasn't empty) but I don't know... is that a good idea? Should I just leave it with the empty folder?
It seems to be it's just a simple script error in the package. Someone wrote
Code:
mk python-elementtree.public
when they should have written
Code:
mkdir python-elementtree.public
A simple mistake that could happen to any of us and easy enough to fix. I wouldn't worry about it unless python starts acting strangely.

Njekto wrote:
Quote:
cheers mate! worked perfectly!
My pleasure, Njekto. Glad to have been of service.
Cheers,
jdk
 
Old 04-18-2009, 11:13 AM   #9
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,650

Rep: Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525
Please see this bug report and the elementtree PTS page. If you wait one more day and do an upgrade, this should be fixed.
 
Old 04-19-2009, 03:24 AM   #10
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,848

Rep: Reputation: Disabled
Just to let everyone know that the upgrade for python-elementtree (1.2.6-14) came through Debian Testing this morning and installed itself over (my manually fixed) python-elementtree (1.2.6-13) with no problems. Use the ftp.de.debian.org mirror in my sources.list.

And who said Debian bug fixes were slow?
Cheers,
jdk

Last edited by jdkaye; 04-19-2009 at 03:25 AM.
 
Old 04-19-2009, 09:38 AM   #11
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,650

Rep: Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525
Yeah, this one only gestated for two days in Sid because it was rated grave.
 
Old 04-19-2009, 06:51 PM   #12
sylar
LQ Newbie
 
Registered: Apr 2009
Location: Russia
Distribution: debian squeeze
Posts: 10

Original Poster
Rep: Reputation: 0
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524303

the bug fixed. only need to apt-get upgrade for repair it.

thanks for the answers

Last edited by sylar; 04-22-2009 at 07:35 AM.
 
Old 04-21-2009, 11:43 AM   #13
squiz
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Rep: Reputation: 0
I installed 1.2.6-14 before it reached testing with the following command:

aptitude -t unstable install python-elementtree

I also set the following in /etc/apt/preferences:
Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release a=unstable
Pin-Priority: 600
Now that this version is in testing, I would like to remain with the testing version and not get the latest and greatest unstable version.

ie. When unstable has 1.2.6-15 and testing has 1.2.6-14 and I perform an "aptitude safe-upgrade" will 1.2.6-15 be installed on my system, or will it stay on 1.2.6-14? If it will be upgraded, how can I prevent it?
 
Old 04-21-2009, 01:41 PM   #14
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Quote:
Originally Posted by squiz View Post
I installed 1.2.6-14 before it reached testing with the following command:

aptitude -t unstable install python-elementtree

I also set the following in /etc/apt/preferences:
Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release a=unstable
Pin-Priority: 600
Now that this version is in testing, I would like to remain with the testing version and not get the latest and greatest unstable version.

ie. When unstable has 1.2.6-15 and testing has 1.2.6-14 and I perform an "aptitude safe-upgrade" will 1.2.6-15 be installed on my system, or will it stay on 1.2.6-14? If it will be upgraded, how can I prevent it?
i don`t know for sure, but just searched for such a problem (-> for vbox-modules) and found this, which worked for me:
Code:
echo packagename hold | dpkg --set-selections
while it might be <packagename hold> or <"packagename hold">
apt-get upgrade -s should give you now the output that the package is getting hold.
if you wanna upgrade the holded package sometimes later you need an
Code:
apt-get --ignore-hold packagename
as said: this is not an advice to follow, but just a hint where to search for a possible solution.
greetings

Last edited by j1alu; 04-21-2009 at 06:27 PM.
 
  


Reply

Tags
python


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
Do you know something about mandatory PYTHON package?? madani Linux - Software 1 03-13-2009 09:24 AM
LXer: Writing a Package in Python LXer Syndicated Linux News 0 09-22-2008 03:50 PM
superkaramba and python elementtree dagger1 Linux - Desktop 0 07-13-2007 04:07 AM
Where can I get the python-uno package? ccico Debian 2 01-19-2006 04:14 AM
Uninstall a python package danesp Linux - Newbie 8 06-02-2005 12:25 AM


All times are GMT -5. The time now is 05:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration