Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Apt update error

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
theworm
Posts: 6
Joined: 2009-05-03 14:08

Apt update error

#1 Post by theworm »

Hi :)

First off, I am using Squeeze.

After updating recently, something happened with a package call (from python-support) to update-python-modules that didn't work, and now a bunch of packages are only half installed from unmet dependencies due to the unconfigured packages. I'm afraid the fix is beyond my knowledge, and google gives a bunch of closed bug reports with no solution. Here is what apt-get upgrade looks like now:

Code: Select all

  $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  gnokii-common
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
13 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up python-support (1.0.2) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 437, in <module>
    public_packages[package].install(need_postinstall)
  File "/usr/sbin/update-python-modules", line 232, in __getitem__
    self[name] = SharedFileList (path)
  File "/usr/sbin/update-python-modules", line 146, in __init__
    for line in file(path):
IOError: [Errno 21] Is a directory
dpkg: error processing python-support (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-reportbug:
 python-reportbug depends on python-support (>= 0.90.0); however:
  Package python-support is not configured yet.
dpkg: error processing python-reportbug (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of reportbug:
 reportbug depends on python-reportbug; however:
  Package python-reportbug is not configured yet.
dpkg: error processing reportbug (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-gtk2:
 python-gtk2 depends on python-support (>= 0.90.0); however:
  Package python-support is not configured yet.
dpkg: error processing python-gtk2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-glade2:
 python-glade2 depends on python-support (>= 0.90.0); however:
  Package python-support is not configured yet.
 python-glade2 depends on python-gtk2 (= 2.14.1-2); however:
  Package python-gtk2 is not configured yet.
dpkg: error processing python-glade2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-mmkeys:
 python-mmkeys depends on python-support (>= 0.7.1); however:
  Package python-support is not configured yet.
 python-mmkeys depends on python-gtk2; however:
  Package python-gtk2 is not configured yet.
dpkg: error processing python-mmkeys (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-feedparser:
 python-feedparser depends on python-support (>= 0.90.0); however:
  Package python-support is not configured yet.
dpkg: error processing python-feedparser (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of exaile:
 exaile depends on python-support (>= 0.7.1); however:
  Package python-support is not configured yet.
 exaile depends on python-gtk2; however:
  Package python-gtk2 is not configured yet.
 exaile depends on python-glade2; however:
  Package python-glade2 is not configured yet.
 exaile depends on python-mmkeys; however:
  Package python-mmkeys is not configured yet.
 exaile depends on python-feedparser; however:
  Package python-feedparser is not configured yet.
dpkg: error processing exaile (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of system-config-printer:
 system-config-printer depends on python-support (>= 0.7.1); however:
  Package python-support is not configured yet.
 system-config-printer depends on python-gtk2; however:
  Package python-gtk2 is not configured yet.
 system-config-printer depends on python-glade2; however:
  Package python-glade2 is not configured yet.
dpkg: error processing system-config-printer (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of serpentine:
 serpentine depends on python-glade2 (>= 2.8.6-5); however:
  Package python-glade2 is not configured yet.
dpkg: error processing serpentine (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome:
 gnome depends on system-config-printer (>= 1.0.0); however:
  Package system-config-printer is not configured yet.
 gnome depends on serpentine; however:
  Package serpentine is not configured yet.
dpkg: error processing gnome (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-ogg:
 python-ogg depends on python-support (>= 0.90.0); however:
  Package python-support is not configured yet.
dpkg: error processing python-ogg (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of compizconfig-settings-manager:
 compizconfig-settings-manager depends on python-support (>= 0.90.0); however:
  Package python-support is not configured yet.
 compizconfig-settings-manager depends on python-gtk2; however:
  Package python-gtk2 is not configured yet.
dpkg: error processing compizconfig-settings-manager (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-support
 python-reportbug
 reportbug
 python-gtk2
 python-glade2
 python-mmkeys
 python-feedparser
 exaile
 system-config-printer
 serpentine
 gnome
 python-ogg
 compizconfig-settings-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)
Please let me know if any other information will help with the problem. And thank you very much for your help.

User avatar
BioTube
Posts: 7520
Joined: 2007-06-01 04:34

Re: Apt update error

#2 Post by BioTube »

I had a similar problem a while back, but it didn't bother me much(it only held up python-support - it looks like you use Python much more than me). However, it fixed itself on my system; have you tried uninstalling and reinstalling the package?
Image
Ludwig von Mises wrote:The elite should be supreme by virtue of persuasion, not by the assistance of firing squads.

theworm
Posts: 6
Joined: 2009-05-03 14:08

Re: Apt update error

#3 Post by theworm »

BioTube wrote:I had a similar problem a while back, but it didn't bother me much(it only held up python-support - it looks like you use Python much more than me). However, it fixed itself on my system; have you tried uninstalling and reinstalling the package?
I'm not sure exactly how long it's been, maybe a week, but yes, I've tried uninstalling it (using --purge too), despite the many packages relying on it, after which I reinstalled the rest, but that just added more unconfigured package errors (there are a lot more than there had been at first):

Code: Select all

  $ sudo apt-get remove python-support
[sudo] password for zxcv: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bluez-gnome gnome-network-admin gnome-power-manager ekiga gedit-common gcalctool python-ldap libpt-1.10.10-plugins-v4l gnome-backgrounds libunique-1.0-0 libpt-1.10.10-plugins-alsa libgtk-vnc-1.0-0
  python-4suite-xml gtk2-engines gnome-volume-manager untex gucharmap zenity cheese pythoncard-doc libunac1 gnome-themes-extras evolution-exchange transmission-gtk seahorse vinagre wv libmrss0 libgalago3
  libtracker-gtk0 gnome-nettool transmission-common libdatrie0 libx264-66 gconf-editor libdmx1 libcryptui0 libqdbm14 libgdl-1-common gdm-themes arj gnome-system-tools libepc-ui-1.0-1 eog gdm
  libgtksourceview1.0-0 gnome-vfs-obexftp libavahi-ui0 gnome-spell libopenobex1 libspeexdsp1 sound-juicer vino libpt-1.10.10 gstreamer0.10-gnomevfs libopal-2.2 libepc-1.0-1 libgnomevfs2-bin dmz-cursor-theme
  gtk2-engines-pixbuf gnome-screensaver python-gdbm libgtksourceview2.0-0 gstreamer0.10-tools totem-gstreamer odt2txt xnest libcupsys2 libgtksourceview-common totem-mozilla gnome-themes libnxml0 totem-common
  swfdec-gnome libgdl-1-0 file-roller libgtkhtml2-0 libgtksourceview2.0-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  alacarte alarm-clock cameramonitor compizconfig-settings-manager deskbar-applet devhelp devhelp-common disk-manager epiphany-extensions exaile fast-user-switch-applet flashplayer-mozilla fusion-icon gdebi
  gdebi-core gedit getlibs gimp gnome gnome-about gnome-app-install gnome-applets gnome-applets-data gnome-control-center gnome-core gnome-desktop-environment gnome-doc-utils gnome-games gnome-games-data
  gnome-main-menu gnome-menus gnome-office gnome-panel gnome-session gnome-user-guide hal-cups-utils ia32-libs ia32-libs-gtk ia32-libs-libcurl3 ia32-libs-libidn11 ia32-libs-libnspr4 ia32-libs-libnss3
  ia32-libs-libssh2 libdevhelp-1-0 libpurple-bin libwine libwine-alsa libwine-cms libwine-gl libwine-gphoto2 libwine-ldap libwine-print libwine-sane lsb-release nautilus nautilus-cd-burner nspluginwrapper
  policycoreutils python-apt python-bugbuddy python-cairo python-cddb python-cups python-cupsutils python-dbus python-eggtrayicon python-elementtree python-evolution python-feedparser python-gamin
  python-gconf python-gdata python-glade2 python-gmenu python-gnome2 python-gnome2-desktop python-gnome2-extras python-gnomeapplet python-gnomedesktop python-gnomekeyring python-gnomeprint
  python-gnupginterface python-gobject python-gpod python-gst0.10 python-gtk2 python-gtkhtml2 python-gtkmozembed python-gtksourceview python-gtksourceview2 python-gtkspell python-gtop python-libxml2
  python-mediaprofiles python-metacity python-mmkeys python-nautilusburn python-notify python-ogg python-pyogg python-pyorbit python-pythoncard python-pyvorbis python-reportbug python-rsvg python-selinux
  python-semanage python-sepolgen python-sexy python-software-properties python-support python-totem-plparser python-utidylib python-vte python-wnck python-xdg pythoncard pythoncard-tools reportbug rhythmbox
  sabayon selinux-policy-default serpentine skype software-properties-gtk system-config-printer totem-plugins unattended-upgrades update-manager update-manager-core update-notifier wine wine-bin wine-utils
  yelp
0 upgraded, 0 newly installed, 135 to remove and 1 not upgraded.
13 not fully installed or removed.
After this operation, 450MB disk space will be freed.
Do you want to continue [Y/n]? 

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Apt update error

#4 Post by pendrachken »

try to apt-get update then apt-get -f install and see if a newer version has made it to the repo servers for the bugfixes.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P

theworm
Posts: 6
Joined: 2009-05-03 14:08

Re: Apt update error

#5 Post by theworm »

No luck with apt-get -f unfortunately.

A friend said it seems like if I could fix this part of the error, it'd be set:

Code: Select all

Setting up python-support (1.0.2) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 437, in <module>
    public_packages[package].install(need_postinstall)
  File "/usr/sbin/update-python-modules", line 232, in __getitem__
    self[name] = SharedFileList (path)
  File "/usr/sbin/update-python-modules", line 146, in __init__
    for line in file(path):
IOError: [Errno 21] Is a directory
So let's see, lines 146, 232, and 437 of /usr/sbin/update-python-modules seem to be the problems.

146 (I put a comment in where it is exactly but I've included the whole code block):

Code: Select all

# Abstract class for PrivateFileList and SharedFileList
class _FileList(list):
    def __init__ (self, path):
        self.name = path
        for line in file(path): #line 146
            line = line.strip()
            if (not line) or line.startswith('#'):
                continue
            if line.startswith('/'):
                self.append(line)
                continue
            line = [x.strip() for x in line.split('=',1)]
            if len(line) != 2:
                warning("Parse error in %s"%path)
                continue
            self.parse_option(*line)

# This class represents a file list as provided in the /usr/share/python-support/$package.public
# Useful for public modules and extensions
class SharedFileList(_FileList, _PublicList):
    def parse_option (self, arg, value):
        if arg=='pyversions':
            self.pyversions = pysupport.version_list(value)
        # Ignore unknown arguments for extensivity

# This class represents a file list as provided in the /usr/share/python-support/$package.private
# Useful for private modules
class PrivateFileList(_FileList, _PrivateList):
    def parse_option (self, arg, value):
        if arg=='pyversion':
            self.pyversion = value
232:

Code: Select all

class CachedFileList(dict):
    def __getitem__ (self, name):
        if name in self and dict.__getitem__(self, name) == None:
            if name.startswith("/"):
                # The case of old-style private directories
                self[name] = PrivateDirList (name)
            else:
                path = os.path.join (sourcepath, name)
                if name.endswith(".public"):
                    self[name] = SharedFileList (path) #line 232
                elif name.endswith(".private"):
                    self[name] = PrivateFileList (path)
                elif os.path.isdir(path):
                    self[name] = SharedDirList (path)
                else:
                    raise "[Internal Error] I don't know what to do with this path: %s"%path
        return dict.__getitem__(self, name)
and finally 437:

Code: Select all

# Check for changes in installed python versions
need_postinstall = []
for pyver in py_oldversions+py_supported:
    dir = os.path.join(basepath,pyver)
    # Check for ".path" because sometimes the directory already exists 
    # while the python version isn't installed, because of some .so's.
    if pyver not in py_installed and os.path.isdir(dir):
        debug("Removing obsolete directory %s..."%(dir))
        shutil.rmtree(dir)
    if pyver in py_installed and not os.path.isfile(os.path.join(dir,".path")):
        need_postinstall.append(pyver)
if need_postinstall:
    debug("Building all modules for %s..."%(" ".join(need_postinstall)))
    for package in public_packages:
        public_packages[package].install(need_postinstall) #line 437
    for pyver in need_postinstall:
        # Here we need to launch create_dotpath because otherwise we could
        # end up without the .path file that is checked 6 lines earlier
        create_dotpath(pyver)
The first two both fail because of the 'path' variable, but line 437 doesn't. I'm afraid I don't know enough to understand the problem.

gnudude
Posts: 1684
Joined: 2009-04-05 17:30
Location: gone....

Re: Apt update error

#6 Post by gnudude »

aptitude update
aptitude reinstall python-support

if necessary download python-support deb and install it with dpkg, force it if necessary...

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Apt update error

#7 Post by pendrachken »

aptitude update
aptitude reinstall python-support

if necessary download python-support deb and install it with dpkg, force it if necessary..
The second part is NOT a good idea. While it MIGHT work for now, later down the road you might run into "dependence hell" just like on the old RPM systems before YUM and friends.

A better Idea is to google apt-pinning ( debian wiki has a good article) and pull just pull python and friends from Sid ( probably where the bugfix updated .Deb is anyways)
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P

gnudude
Posts: 1684
Joined: 2009-04-05 17:30
Location: gone....

Re: Apt update error

#8 Post by gnudude »

pendrachken wrote:The second part is NOT a good idea. While it MIGHT work for now, later down the road you might run into "dependence hell" just like on the old RPM systems before YUM and friends.
Uh, I was talking about using dpkg to install the same package that apt/aptitude is trying to install. Forcing it is never a good idea....but in this case, it isn't a bad idea either. If forcing it can get it popped in, then that should either fix it or allow him to cleanly un-install it which would be preferable to having it b0rk3d somewhere in the middle. Nobody talked about mixing anything...

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Apt update error

#9 Post by pendrachken »

gnudude wrote:
pendrachken wrote:The second part is NOT a good idea. While it MIGHT work for now, later down the road you might run into "dependence hell" just like on the old RPM systems before YUM and friends.
Uh, I was talking about using dpkg to install the same package that apt/aptitude is trying to install. Forcing it is never a good idea....but in this case, it isn't a bad idea either. If forcing it can get it popped in, then that should either fix it or allow him to cleanly un-install it which would be preferable to having it b0rk3d somewhere in the middle. Nobody talked about mixing anything...
I still say forcing the package is never the way to go, you won't get all the install scripts run to set up the package. Even if apt / dpkg see the file as installed, when you try to remove it scripts for removing its files will error out as well ( not to mention if it IS removed you may have old files left over polluting the next install of the package). What I personally would do is this: move the /usr/sbin/update-python-modules to a backup file ( like /usr/sbin/1update-python-modules ) and try to re-install python-support.

If that doesn't work I still suggest pulling in the packages from Sid, after setting up apt-pinning. Forcing the install is like smashing a watermelon with a 10 pound hammer and then wondering why it's all in little pieces....
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P

theworm
Posts: 6
Joined: 2009-05-03 14:08

Re: Apt update error

#10 Post by theworm »

gnudude wrote:aptitude update
aptitude reinstall python-support

if necessary download python-support deb and install it with dpkg, force it if necessary...
No luck with the first two, so I went to packages.debian.org, grabbed the previous version (I have 1.0.2, which is for testing and experimental, while 0.8.4 is the latest for stable) and installed it, but indeed I ran into dependency problems:

Code: Select all

  $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  compizconfig-settings-manager: Depends: python-support (>= 0.90.0) but 0.8.4 is installed
  python-feedparser: Depends: python-support (>= 0.90.0) but 0.8.4 is installed
  python-glade2: Depends: python-support (>= 0.90.0) but 0.8.4 is installed
  python-gtk2: Depends: python-support (>= 0.90.0) but 0.8.4 is installed
  python-ogg: Depends: python-support (>= 0.90.0) but 0.8.4 is installed
  python-reportbug: Depends: python-support (>= 0.90.0) but 0.8.4 is installed
E: Unmet dependencies. Try using -f.
I tried finding version 0.90.0 to see if that would be acceptable but couldn't.

However, I noticed even this version came with a similar error:

Code: Select all

  $ sudo dpkg -i python-support_0.8.4_all.deb 
(Reading database ... 206327 files and directories currently installed.)
Preparing to replace python-support 1.0.2 (using python-support_0.8.4_all.deb) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 437, in <module>
    public_packages[package].install(need_postinstall)
  File "/usr/sbin/update-python-modules", line 232, in __getitem__
    self[name] = SharedFileList (path)
  File "/usr/sbin/update-python-modules", line 146, in __init__
    for line in file(path):
IOError: [Errno 21] Is a directory
Unpacking replacement python-support ...
dpkg: warning - unable to delete old directory `/usr/lib/pymodules': Directory not empty
Setting up python-support (0.8.4) ...
Processing triggers for man-db ...
but it's a bit more helpful: the problem is with /usr/lib/pymodules it seems. I tried deleting it and running sudo aptitude reinstall python-support to see if the error changed at least, and it doesn't, and also, it remakes the directory.




pendrachken wrote:
gnudude wrote:
pendrachken wrote:The second part is NOT a good idea. While it MIGHT work for now, later down the road you might run into "dependence hell" just like on the old RPM systems before YUM and friends.
Uh, I was talking about using dpkg to install the same package that apt/aptitude is trying to install. Forcing it is never a good idea....but in this case, it isn't a bad idea either. If forcing it can get it popped in, then that should either fix it or allow him to cleanly un-install it which would be preferable to having it b0rk3d somewhere in the middle. Nobody talked about mixing anything...
I still say forcing the package is never the way to go, you won't get all the install scripts run to set up the package. Even if apt / dpkg see the file as installed, when you try to remove it scripts for removing its files will error out as well ( not to mention if it IS removed you may have old files left over polluting the next install of the package). What I personally would do is this: move the /usr/sbin/update-python-modules to a backup file ( like /usr/sbin/1update-python-modules ) and try to re-install python-support.

If that doesn't work I still suggest pulling in the packages from Sid, after setting up apt-pinning. Forcing the install is like smashing a watermelon with a 10 pound hammer and then wondering why it's all in little pieces....
As for backing up and removing update-python-modules, unfortunately that was one of the first things I tried. And the unstable version is what I had originally (and have again), since I'm on Squeeze.

gnudude
Posts: 1684
Joined: 2009-04-05 17:30
Location: gone....

Re: Apt update error

#11 Post by gnudude »

pendrachken wrote:I still say forcing the package is never the way to go
the means to an end my friend....means to and end...
you won't get all the install scripts run to set up the package
What? I wonder what we did before we had apt???
Even if apt / dpkg see the file as installed, when you try to remove it scripts for removing its files will error out as well ( not to mention if it IS removed you may have old files left over polluting the next install of the package).
What?
Forcing the install is like smashing a watermelon with a 10 pound hammer and then wondering why it's all in little pieces....
No it is like smashing a big peg in a small hole in order to use the big removal hammer to cleanly smash the big peg back out of the small hole...

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Apt update error

#12 Post by pendrachken »

well, if you want to force it is up to you, but you might want to try to testings for your depends issue


I still don't like forcing, you could try apt-get build-dep python-support && apt-get source -b python-support
just to see if a localized build will work better.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P

gnudude
Posts: 1684
Joined: 2009-04-05 17:30
Location: gone....

Re: Apt update error

#13 Post by gnudude »

I also wonder if the system is fully up to date? possibly some package mis-match has caused the problem?

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Apt update error

#14 Post by pendrachken »

It SEEMS like it is - unless apt-itself is causing the error for some reason:

Code: Select all

Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  gnokii-common
######HERE#### 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.####HERE####
13 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up python-support (1.0.2) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 437, in <module>
    public_packages[package].install(need_postinstall)
  File "/usr/sbin/update-python-modules", line 232, in __getitem__
    self[name] = SharedFileList (path)
  File "/usr/sbin/update-python-modules", line 146, in __init__
    for line in file(path):
IOError: [Errno 21] Is a directory
dpkg: error processing python-support (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-reportbug:
python-reportbug depends on python-support (>= 0.90.0); however:

Apt WAS saying only gnokii-common is the only package not being upgraded. The goddess only knows what it is saying right now :P after all the depends are whacky now.


P.P.S. It seems as if you where doing either an upgrade or dist-upgrade, is that what was happening when this error started?
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P

gnudude
Posts: 1684
Joined: 2009-04-05 17:30
Location: gone....

Re: Apt update error

#15 Post by gnudude »

Well any dependency issues cause by installing a mis-matched deb is easily fixed.

I wonder why gnokii was held back.

theworm
Posts: 6
Joined: 2009-05-03 14:08

Re: Apt update error

#16 Post by theworm »

pendrachken wrote:It SEEMS like it is - unless apt-itself is causing the error for some reason:

Code: Select all

Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  gnokii-common
######HERE#### 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.####HERE####
13 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up python-support (1.0.2) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 437, in <module>
    public_packages[package].install(need_postinstall)
  File "/usr/sbin/update-python-modules", line 232, in __getitem__
    self[name] = SharedFileList (path)
  File "/usr/sbin/update-python-modules", line 146, in __init__
    for line in file(path):
IOError: [Errno 21] Is a directory
dpkg: error processing python-support (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-reportbug:
python-reportbug depends on python-support (>= 0.90.0); however:

Apt WAS saying only gnokii-common is the only package not being upgraded. The goddess only knows what it is saying right now :P after all the depends are whacky now.


P.P.S. It seems as if you where doing either an upgrade or dist-upgrade, is that what was happening when this error started?
I do upgrades pretty often, so it could've been that, but I can't be sure.

I reinstalled 1.0.2 so the dependency problems are gone, but the former problems are there.

I tried apt-get build-dep python-support but it ends with an error: E: Failed to process build dependencies.

As for forcing, I'm not sure what you're saying to force. I have the latest python-support, and it doesn't work. Or do you mean force/pin the previous version, and that will ignore that it's not the right version to meet the packages that depend on it being version 0.90.0 or later?

gnudude
Posts: 1684
Joined: 2009-04-05 17:30
Location: gone....

Re: Apt update error

#17 Post by gnudude »

Use the correct version of python-support for your system. Download the deb file.

use the command
dpkg -i --force-all /path/to/the/file.deb
to slam it in - maybe this solves everything....maybe not

use this command to try and bang it back out cleanly...
dpkg -P --force-all packagename

now use apt or even dpkg to try and install it cleanly without forcing it

then maybe a good
apt-get -f install
to see if everything is kosher

If the error really is in the package then this won't help and it will require a lot more fiddling to work around it.

I actually wonder if something else is wonky on your system.

*Do this at your own risk. It may cause your system to die a unseemly death, hair to grow on your palms, you may go blind....

smallchange
Posts: 1740
Joined: 2009-05-04 15:56
Been thanked: 1 time

Re: Apt update error

#18 Post by smallchange »

The script that is failing is quit simple.

Code: Select all

cat /var/lib/dpkg/info/python-support.postinst
Does /var/lib/python-support exist? Is it a link to /usr/lib/pymodules?

If not what (if anything) is in it and what put it there?

It basically wants to remove that directory and create a link, so look at what is there and make it work, after considering what else is in there.

User avatar
mauser1891
Posts: 85
Joined: 2007-07-22 04:45
Location: Western WA, USA

Re: Apt update error

#19 Post by mauser1891 »

Hello Folks,


Now, I admit that I am still learning alot here.
I was curious as to this route;

aptitude remove <package>
aptitude purge <package>
updatedb
apt-get update
aptitude install <package>

I need to do a little more reading, but wanted to submit this for replies.
This is how I 'switched' from gnome to kde.
Thanks for sharing your knowledge, and response's.
Thank You,
Mauser1891

AMD A6-3400M 8G DDR3 Samsung EVO 120 powered Gateway laptop
FX-8350, 7970, 32G DDR3, 8G RamDisk/SSD/SSHD/HD, Win 8.1 Pro desktop

theworm
Posts: 6
Joined: 2009-05-03 14:08

Re: Apt update error

#20 Post by theworm »

gnudude wrote:Use the correct version of python-support for your system. Download the deb file.

use the command
dpkg -i --force-all /path/to/the/file.deb
to slam it in - maybe this solves everything....maybe not

use this command to try and bang it back out cleanly...
dpkg -P --force-all packagename

now use apt or even dpkg to try and install it cleanly without forcing it

then maybe a good
apt-get -f install
to see if everything is kosher

If the error really is in the package then this won't help and it will require a lot more fiddling to work around it.

I actually wonder if something else is wonky on your system.

*Do this at your own risk. It may cause your system to die a unseemly death, hair to grow on your palms, you may go blind....
No luck unfortunately.
smallchange wrote:The script that is failing is quit simple.

Code: Select all

cat /var/lib/dpkg/info/python-support.postinst
Does /var/lib/python-support exist? Is it a link to /usr/lib/pymodules?

If not what (if anything) is in it and what put it there?

It basically wants to remove that directory and create a link, so look at what is there and make it work, after considering what else is in there.
/var/lib/python-support exists and is a link to /usr/lib/pymodules.

In it, there's a 'python2.5' folder (and nothing else), and in that is a bunch of python things:

Code: Select all

  $ ls -l /var/lib/python-support/python2.5/
total 128
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 atom
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 cairo
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 cameramonitor
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 ccm
lrwxrwxrwx  1 root root   55 2009-05-06 08:57 CDDB-1.4.egg-info -> /usr/share/python-support/python-cddb/CDDB-1.4.egg-info
lrwxrwxrwx  1 root root   45 2009-05-06 08:57 CDDB.py -> /usr/share/python-support/python-cddb/CDDB.py
lrwxrwxrwx  1 root root   54 2009-05-06 08:57 cdrom.so -> /usr/lib/python-support/python-cddb/python2.5/cdrom.so
lrwxrwxrwx  1 root root   55 2009-05-06 08:57 cups-1.0.egg-info -> /usr/share/python-support/python-cups/cups-1.0.egg-info
lrwxrwxrwx  1 root root   53 2009-05-06 08:57 cups.so -> /usr/lib/python-support/python-cups/python2.5/cups.so
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 cupsutils
drwxr-xr-x  3 root root 4096 2009-05-06 08:57 dbus
lrwxrwxrwx  1 root root   54 2009-05-06 08:57 dbus_bindings.py -> /usr/share/python-support/python-dbus/dbus_bindings.py
lrwxrwxrwx  1 root root   63 2009-05-06 08:57 _dbus_bindings.so -> /usr/lib/python-support/python-dbus/python2.5/_dbus_bindings.so
lrwxrwxrwx  1 root root   68 2009-05-06 08:57 _dbus_glib_bindings.so -> /usr/lib/python-support/python-dbus/python2.5/_dbus_glib_bindings.so
drwxr-xr-x  7 root root 4096 2009-05-06 08:57 deskbar
lrwxrwxrwx  1 root root   47 2009-05-06 08:57 DiscID.py -> /usr/share/python-support/python-cddb/DiscID.py
drwxr-xr-x  3 root root 4096 2009-05-06 08:57 DiskManager
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 DistUpgrade
lrwxrwxrwx  1 root root   55 2009-05-06 08:57 drv_libxml2.py -> /usr/share/python-support/python-libxml2/drv_libxml2.py
lrwxrwxrwx  1 root root   43 2009-05-06 08:57 feedparser-4.1.egg-info -> /usr/share/pyshared/feedparser-4.1.egg-info
lrwxrwxrwx  1 root root   33 2009-05-06 08:57 feedparser.py -> /usr/share/pyshared/feedparser.py
drwxr-xr-x 15 root root 4096 2009-05-06 08:57 gdata
lrwxrwxrwx  1 root root   62 2009-05-06 08:57 gdata.py-1.1.1.egg-info -> /usr/share/python-support/python-gdata/gdata.py-1.1.1.egg-info
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 GMenuSimpleEditor
lrwxrwxrwx  1 root root   55 2009-05-06 08:57 gmenu.so -> /usr/lib/python-support/python-gmenu/python2.5/gmenu.so
lrwxrwxrwx  1 root root   65 2009-05-06 08:57 GnuPGInterface.py -> /usr/share/python-support/python-gnupginterface/GnuPGInterface.py
drwxr-xr-x 12 root root 4096 2009-05-06 08:57 gtk-2.0
lrwxrwxrwx  1 root root   73 2009-05-06 08:57 gtksourceview2.so -> /usr/lib/python-support/python-gtksourceview2/python2.5/gtksourceview2.so
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 invest
lrwxrwxrwx  1 root root   62 2009-05-06 08:57 libxml2mod.so -> /usr/lib/python-support/python-libxml2/python2.5/libxml2mod.so
lrwxrwxrwx  1 root root   51 2009-05-06 08:57 libxml2.py -> /usr/share/python-support/python-libxml2/libxml2.py
lrwxrwxrwx  1 root root   52 2009-05-06 08:57 lsb_release.py -> /usr/share/python-support/lsb-release/lsb_release.py
lrwxrwxrwx  1 root root   57 2009-05-06 08:57 mmkeys.so -> /usr/lib/python-support/python-mmkeys/python2.5/mmkeys.so
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 ogg
lrwxrwxrwx  1 root root   57 2009-05-06 08:57 ORBit.so -> /usr/lib/python-support/python-pyorbit/python2.5/ORBit.so
lrwxrwxrwx  1 root root   38 2009-05-06 08:57 pyogg-1.3.egg-info -> /usr/share/pyshared/pyogg-1.3.egg-info
drwxr-xr-x  5 root root 4096 2009-05-06 08:57 PythonCard
drwxr-xr-x  3 root root 4096 2009-05-06 08:57 reportbug
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 reportbug-4.1.egg-info
drwxr-xr-x  4 root root 4096 2009-05-06 08:57 sabayon
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 selinux
lrwxrwxrwx  1 root root   53 2009-05-06 08:57 semanage.py -> /usr/share/python-support/python-semanage/semanage.py
lrwxrwxrwx  1 root root   62 2009-05-06 08:57 _semanage.so -> /usr/lib/python-support/python-semanage/python2.5/_semanage.so
lrwxrwxrwx  1 root root   53 2009-05-06 08:57 seobject.py -> /usr/share/python-support/policycoreutils/seobject.py
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 sepolgen
drwxr-xr-x  3 root root 4096 2009-05-06 08:57 softwareproperties
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 tidy
drwxr-xr-x  4 root root 4096 2009-05-06 08:57 UpdateManager
lrwxrwxrwx  1 root root   63 2009-05-06 08:57 uTidylib-0.2.egg-info -> /usr/share/python-support/python-utidylib/uTidylib-0.2.egg-info
drwxr-xr-x  2 root root 4096 2009-05-06 08:57 xdg
I tried a bunch of things:
1. deleted /usr/lib/pymodules and tried aptitude upgrade (it tries to reconfigure it each time I upgrade, so I figured this would produce the least unwanted side effects)
2. deleted /usr/lib/pymodules and tried aptitude reinstall python-support
3. deleted /usr/lib/pymodules and /var/lib/python-support and did as in 1 and 2
4. deleted /usr/lib/pymodules/python2.5 and did as in 1 and 2
5. deleted /usr/lib/pymodules and /var/lib/python-support and did as in 1 and 2

all without it fixing. Each time it remakes them when it installs the package, so it's creating then failing to delete them while installing, so it seems like the package itself and not my system.

Here's my /var/lib/dpkg/info/python-support.postinst:

Code: Select all

  $ cat /var/lib/dpkg/info/python-support.postinst
#! /bin/sh
set -e

if [ "$1" = "triggered" ]; then
    update-python-modules --post-install
    exit 0
fi

# Remove the old directory.
if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 0.90; then
    rm -rf /var/lib/python-support
fi

if ! [ -e /var/lib/python-support ]; then
    ln -sf /usr/lib/pymodules /var/lib/python-support
fi



update-python-modules --post-install python-support.private
I tried calling

Code: Select all

sudo update-python-modules --post-install
from the command line, and it comes up with the same error as aptitude.

I also tried editing /var/lib/dpkg/info/python-support.postinst, specifically the line that tries to delete the file:

Code: Select all

rm -rf /var/lib/python-support
I changed to

Code: Select all

rmdir --ignore-fail-on-non-empty /var/lib/python-support
but it came up with an error saying "Setting up python-support (1.0.2) ... rmdir: failed to remove `/var/lib/python-support': Not a directory", which it isn't, but then why does the original error say "IOError: [Errno 21] Is a directory" with rm instead of rmdir there? I tried commenting out the whole 'if' part that tries to remove the directory, and it comes up with 'IOError: [Errno 21] Is a directory' again, so I think it's update-python-modules and not the rest of /var/lib/dpkg/info/python-support.postinst causing the problem, which brings us back to /usr/sbin/update-python-modules as the cause (assuming I'm right about all this).

Post Reply