Error processing line 1 of /usr/lib/python2.7/dist-packages/ubuntuone-couch.pth:

Asked by japps on 2012-03-06

ubuntu 11.10 seems to be still running okay I am still a beginner but I got a red no entry sign on right top icon bar I tried following instructions on dropping the info down but it does not mean much to me. Got a message to report as bug. Tried following instructions in Terminal but the bug reporting through there is not working so I contacted help from beginner forum. Was told to use ubuntu-bug unity see below.
 james@james-VGN-FE31H:~$ ubuntu-bug unity
Error processing line 1 of /usr/lib/python2.7/dist-packages/ubuntuone-couch.pth:

Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 161, in addpackage
if not dircase in known_paths and os.path.exists(dir):
File "/usr/lib/python2.7/genericpath.py", line 18, in exists
os.stat(path)
TypeError: must be encoded string without NULL bytes, not str

Remainder of file ignored
ERROR: Could not import module, is a package upgrade in progress? Error: No module named iri2uri
Did not open in Lauchpad as was informed

Under red no entry sign I will write down a bit ofwhat is listed 32 lines in all
beginning with: An error ocurred, please run package manager from the right-click menu or apt-get in a terminal to see what is wrong. the error message was: "ror processing line 1 off/usr/lib/python 2.7/dist-packages/ubuntu-couch.pth:
Traceback(most recent call last): File "/usr/lib python 2.7/site.py" line 161 in add package
and goes on and on
The end line is: Remaider of file ignored 8;6'. This usually means that your installed packages have unmet dependencies.

I had a window opened saying package manager"synaptic" or run "sudo apt-get install -f
james@james-VGN-FE31H:~$ sudo apt-get install -f
[sudo] password for james:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
james@james-VGN-FE31H:~$ sudo dpkg --configure -a
dpkg: error: parsing file '/var/lib/dpkg/updates/0027' near line 0:
 MSDOS EOF (^Z) in field name `TAvpW'

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Fabio Marconi
Solved:
2012-03-11
Last query:
2012-03-11
Last reply:
2012-03-11
Fabio Marconi (fabiomarconi) said : #1

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Fabio Marconi (fabiomarconi) said : #2

Hello
Please open a terminal and run
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
And run again update manager
Thanks

Fabio

japps (japps) said : #3

Sorry followed your advice but keep getting E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
How do I manually run instuction if that will work
Thank you
Find below result of following your inst.
james@james-VGN-FE31H:~$ sudo apt-get clean
[sudo] password for james:
james@james-VGN-FE31H:~$ sudo apt-get autoremove
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
james@james-VGN-FE31H:~$ sudo apt-get update
Ign http://security.ubuntu.com oneiric-security InRelease
Ign http://gb.archive.ubuntu.com oneiric InRelease
Ign http://gb.archive.ubuntu.com oneiric-updates InRelease
Get:1 http://security.ubuntu.com oneiric-security Release.gpg [198 B]
Hit http://gb.archive.ubuntu.com oneiric Release.gpg
Get:2 http://security.ubuntu.com oneiric-security Release [40.8 kB]
Get:3 http://gb.archive.ubuntu.com oneiric-updates Release.gpg [198 B]
Hit http://gb.archive.ubuntu.com oneiric Release
Get:4 http://gb.archive.ubuntu.com oneiric-updates Release [40.8 kB]
Get:5 http://security.ubuntu.com oneiric-security/main Sources [33.7 kB]
Get:6 http://security.ubuntu.com oneiric-security/universe Sources [11.8 kB]
Get:7 http://security.ubuntu.com oneiric-security/main i386 Packages [88.0 kB]
Hit http://gb.archive.ubuntu.com oneiric/main Sources
Hit http://gb.archive.ubuntu.com oneiric/universe Sources
Hit http://gb.archive.ubuntu.com oneiric/main i386 Packages
Hit http://gb.archive.ubuntu.com oneiric/universe i386 Packages
Hit http://gb.archive.ubuntu.com oneiric/main TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric/universe TranslationIndex
Get:8 http://gb.archive.ubuntu.com oneiric-updates/main Sources [129 kB]
Get:9 http://security.ubuntu.com oneiric-security/universe i386 Packages [29.8 kB]
Get:10 http://security.ubuntu.com oneiric-security/main TranslationIndex [73 B]
Get:11 http://security.ubuntu.com oneiric-security/universe TranslationIndex [73 B]
Get:12 http://security.ubuntu.com oneiric-security/main Translation-en [49.6 kB]
Get:13 http://gb.archive.ubuntu.com oneiric-updates/universe Sources [46.5 kB]
Get:14 http://security.ubuntu.com oneiric-security/universe Translation-en [20.7 kB]
Get:15 http://gb.archive.ubuntu.com oneiric-updates/main i386 Packages [296 kB]
Get:16 http://gb.archive.ubuntu.com oneiric-updates/universe i386 Packages [102 kB]
Get:17 http://gb.archive.ubuntu.com oneiric-updates/main TranslationIndex [74 B]
Get:18 http://gb.archive.ubuntu.com oneiric-updates/universe TranslationIndex [73 B]
Hit http://gb.archive.ubuntu.com oneiric/main Translation-en_GB
Hit http://gb.archive.ubuntu.com oneiric/main Translation-en
Hit http://gb.archive.ubuntu.com oneiric/universe Translation-en_GB
Hit http://gb.archive.ubuntu.com oneiric/universe Translation-en
Get:19 http://gb.archive.ubuntu.com oneiric-updates/main Translation-en [139 kB]
Get:20 http://gb.archive.ubuntu.com oneiric-updates/universe Translation-en [61.1 kB]
Fetched 1,090 kB in 3s (325 kB/s)
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
james@james-VGN-FE31H:~$

Fabio Marconi (fabiomarconi) said : #4

Hello
it is telling you...
I was thinking that you've alredy done...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
then in terminal

sudo dpkg --configure -a

japps (japps) said : #5

Hello fabio I have tried that in terminal still no good I am starting to think I am not good enough to sort this problem
This is what I got below next step please
james@james-VGN-FE31H:~$ sudo dpkg --configure -a
[sudo] password for james:
dpkg: error: parsing file '/var/lib/dpkg/updates/0027' near line 0:
 MSDOS EOF (^Z) in field name `TAvpW'

Fabio Marconi (fabiomarconi) said : #6

Hello
Again in terminal
sudo rm -r /var/lib/dpkg/updates/*
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade

japps (japps) said : #7

Sorry to be a pain fabio but it is getting better everthing seems to be happening until we get to the end . Is it better to get a new ubuntu and start from scratch what do you think? This is what turned up
this isExtract templates from packages: 100%
Preconfiguring packages ...
debconf: Warning: Possible database corruption; will attempt to repair by adding back missing question tzdata.
debconf: Warning: Possible database corruption; will attempt to repair by adding back missing question libc6:i386.
debconf: Warning: Possible database corruption; will attempt to repair by adding back missing question libc6.
debconf: Warning: Possible database corruption; will attempt to repair by adding back missing question lightdm.
tzdata failed to preconfigure with exit status 10.
lightdm failed to preconfigure with exit status 10.
(Reading database ...
dpkg: warning: files list file for package `python-httplib2' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libaprutil1' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `python-pkg-resources' missing, assuming package has no files currently installed.
(Reading database ... 233232 files and directories currently installed.)
Preparing to replace gzip 1.3.12-9ubuntu1.1 (using .../gzip_1.3.12-9ubuntu1.2_i386.deb) ...
Unpacking replacement gzip ...
Processing triggers for install-info ...
Processing triggers for man-db ...
debconf: Warning: Possible database corruption; will attempt to repair by adding back missing question man-db.
dpkg: error processing man-db (--unpack):
 subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
 man-db
E: Sub-process /usr/bin/dpkg returned an error code (1)
james@james-VGN-FE31H:~$
 Thank you for all your patience

Best Fabio Marconi (fabiomarconi) said : #8

Hello
Try with sudo nautilus /var/cache/debconf/
and remove everything except password.dat
If not working reinstall from scratch, actually Precise is pratically stable and working but not completely translated, if you want to install it you can download from:
http://cdimage.ubuntu.com/daily-live/current/
Greetings Fabio

japps (japps) said : #9

Thanks Fabio Marconi, that solved my question.