LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   python-elementtree package problem.. (https://www.linuxquestions.org/questions/debian-26/python-elementtree-package-problem-719517/)

sylar 04-16-2009 03:12 AM

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

njekto 04-17-2009 05:22 AM

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

radiodee1 04-17-2009 05:57 AM

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.

njekto 04-17-2009 06:57 AM

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?

jdkaye 04-17-2009 07:21 AM

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

radiodee1 04-17-2009 07:40 AM

Quote:

Originally Posted by jdkaye (Post 3512116)
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?

njekto 04-17-2009 07:43 AM

cheers mate! worked perfectly!

jdkaye 04-18-2009 01:05 AM

Quote:

Originally Posted by radiodee1 (Post 3512130)
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

AlucardZero 04-18-2009 10:13 AM

Please see this bug report and the elementtree PTS page. If you wait one more day and do an upgrade, this should be fixed.

jdkaye 04-19-2009 02:24 AM

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

AlucardZero 04-19-2009 08:38 AM

Yeah, this one only gestated for two days in Sid because it was rated grave.

sylar 04-19-2009 05:51 PM

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

squiz 04-21-2009 10:43 AM

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?

j1alu 04-21-2009 12:41 PM

Quote:

Originally Posted by squiz (Post 3516310)
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


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