Results 1 to 4 of 4

Thread: EOF Error while running apt-get upgrade

  1. #1
    Join Date
    Dec 2010
    Beans
    4

    EOF Error while running apt-get upgrade

    I'm running Ubuntu Oneiric (32bit) and I first got this error when running 'apt-get upgrade'. Now I keep getting it whenever I'm trying to run apt and also while opening other programs (gedit, for example).

    Code:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site.py", line 62, in <module>
        import os
      File "/usr/lib/python2.7/os.py", line 49, in <module>
        import posixpath as path
    EOFError: EOF read where object expected
    dpkg: error while cleaning up:
     subprocess installed post-installation script returned error exit status 1
    The problematic packages were
    Code:
    Errors were encountered while processing:
     /var/cache/apt/archives/python-httplib2_0.7.1-1ubuntu1_all.deb
     /var/cache/apt/archives/python-pkg-resources_0.6.16-1_all.deb
     /var/cache/apt/archives/python-libxml2_2.7.8.dfsg-4ubuntu0.2_i386.deb
     /var/cache/apt/archives/ubuntuone-couch_0.3.0-0ubuntu2_all.deb
    I tried removing those packages with synaptic and the EOF error repeated.

    The complete log of running the 'apt-get -f install' command is here
    Last edited by pranavashok; March 6th, 2012 at 01:02 PM.

  2. #2
    Join Date
    Jun 2009
    Location
    lincoln,uk
    Beans
    17
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: EOF Error while running apt-get upgrade

    Hello pranavashok.

    Have you tried typing in:

    Code:
    apt-get update
    to update apt's package list? Then try:

    Code:
    apt-get upgrade
    I'll help where i can.
    My website: https://sites.google.com/site/apesstuff/

  3. #3
    Join Date
    Dec 2010
    Beans
    4

    Re: EOF Error while running apt-get upgrade

    Yes, those were the first things I tried.

    Another thing I did was download Python 2.7 source and copy the site.py and the os.py files into my /usr/lib/python2.7/ directory. Doesn't help.

  4. #4
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: EOF Error while running apt-get upgrade

    Looks like this is a bug. I've been googling all over the place, and it most people with the problem don't seem to have a solution.
    How difficult would an OS reinstall be...? Painful for a seemingly small thing, but I don't know what else you could do to fix it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •