Update Manager broken
I downloaded the update packages offered on 3 Dec 2007 with Update Manager (Gutsy Gibbon). Now Update Manager doesn't load. The error messages read:
E: Problem parsing dependency Replaces
E: Error occurred while processing kexi (NewVersion1)
E: Problem with MergeList /var/lib/
E: The package lists or status file could not be parsed or opened
E: _cache->open () failed, please report.
Should I uninstall the newly installed packages?
If so which ones, and how?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- repley
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
what happend when you run; "sudo aptitude update; sudo aptitude upgrade"?
Revision history for this message
|
#2 |
Those commands return the same error messages.
Ricardo Cropalato de Melo wrote:
> Your question #19383 on Ubuntu changed:
> https:/
>
> Status: Open => Needs information
>
> Ricardo Cropalato de Melo requested for more information:
> what happend when you run; "sudo aptitude update; sudo aptitude
> upgrade"?
>
>
Revision history for this message
|
#3 |
try "sudo dpkg-reconfigure -a"
Revision history for this message
|
#4 |
Wow! This involves reconfiguring the kernel, not so? This is a
complicated process, and I don't think I have the nerve for all of that ...
Ricardo Cropalato de Melo wrote:
> Your question #19383 on Ubuntu changed:
> https:/
>
> Status: Open => Answered
>
> Ricardo Cropalato de Melo proposed the following answer:
> try "sudo dpkg-reconfigure -a"
>
>
Revision history for this message
|
#5 |
be strong. :-D
it's not so hard. You can do it.
Use the default answers.
Revision history for this message
|
#6 |
Thanks - I'll give it a go when I have the time (I am a freelance
translator with impossible deadlines to meet, and I need to finish my
day's work before I can spend time on other things).
Ricardo Cropalato de Melo wrote:
> Your question #19383 on Ubuntu changed:
> https:/
>
> Status: Open => Answered
>
> Ricardo Cropalato de Melo proposed the following answer:
> be strong. :-D
>
> it's not so hard. You can do it.
>
> Use the default answers.
>
>
Revision history for this message
|
#7 |
Hi !
I do not this you have to run the proposed command : I would take a loooooong time anyway. from the error you describe, There may have be a problem when downloading package information.
delete what is in /var/lib/
cd /var/lib/apt/lists/
sudo rm *
sudo apt-get update
and see if you still have a problem
Revision history for this message
|
#9 |
Thanks - there has been some progress, in that the error message has
disappeared from the Update Manager starburst icon. I was also able to
download and install 45 updates from this icon.
However, I still can't get Add/Remove Programs to load from the
Applications menu (and neither an associated program like Software
Sources from the System > Administration menu). Now that the updates
from the Update Manager icon have been completed (and the icon itself
has disappeared at top right on the screen), I can't get Update Manager
to load from the System > Administration Menu either. The Synaptic
Package Manager does load.
As a further clue I should mention that just after downloading the
updates that seem to have caused all the trouble, I also had problems
with the Search applet on booting. This showed a window with the option
of deleting it, which I did.
Hope this helps.
Olivier wrote:
> Your question #19383 on Ubuntu changed:
> https:/
>
> Status: Open => Answered
>
> Olivier proposed the following answer:
> Hi !
>
> I do not this you have to run the proposed command : I would take a
> loooooong time anyway. from the error you describe, There may have be a
> problem when downloading package information.
>
> delete what is in /var/lib/
>
> cd /var/lib/apt/lists/
> sudo rm *
> sudo apt-get update
>
> and see if you still have a problem
>
>
Revision history for this message
|
#10 |
that is really weird....
to know what is happening,
search for the command associated with the programs that fail to launch. to do that, right click on the "Application menu" and choose edit. browse the menu editor to find the right launcher and the associated command. copy&paste this command in a terminal and report here the errors
Revision history for this message
|
#11 |
Error report for Software Sources:
jan@Jan:~$ gksu --desktop
/usr/share/
/usr/bin/
File "/usr/bin/
from softwarepropert
SoftwarePropert
File
"/usr/lib/
line 25, in <module>
import apt
ImportError: No module named apt
Error in sys.excepthook:
Traceback (most recent call last):
File "/var/lib/
38, in apport_excepthook
from apport.fileutils import likely_packaged
File "/var/lib/
in <module>
from apport.report import Report
File "/var/lib/
<module>
from problem_report import ProblemReport
File "/var/lib/
in <module>
import zlib, base64, time, UserDict, sys, gzip, struct
ImportError: No module named base64
Original exception was:
Traceback (most recent call last):
File "/usr/bin/
from softwarepropert
SoftwarePropert
File
"/usr/lib/
line 25, in <module>
import apt
ImportError: No module named apt
-------
Error report for Add/Remove Programs:
jan@Jan:~$ /usr/bin/
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/lib/
435, in main
from AppInstall import AppInstall
File "/usr/lib/
50, in <module>
from widgets.AppListView import AppListView
File
"/usr/lib/
line 9, in <module>
from xml.sax.saxutils import escape
File "/usr/lib/
8, in <module>
import os, urlparse, urllib2, types
File "/usr/lib/
import base64
ImportError: No module named base64
Error in sys.excepthook:
Traceback (most recent call last):
File "/var/lib/
38, in apport_excepthook
from apport.fileutils import likely_packaged
File "/var/lib/
in <module>
from apport.report import Report
File "/var/lib/
<module>
from problem_report import ProblemReport
File "/var/lib/
in <module>
import zlib, base64, time, UserDict, sys, gzip, struct
ImportError: No module named base64
Original exception was:
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/lib/
435, in main
from AppInstall import AppInstall
File "/usr/lib/
50, in <module>
from widgets.AppListView import AppListView
File
"/usr/lib/
line 9, in <module>
from xml.sax.saxutils import escape
File "/usr/lib/
8, in <module>
import os, urlparse, urllib2, types
File "/usr/lib/
import base64
ImportError: No module named base64
-------
Error report for Update Manager
jan@Jan:~$ /usr/bin/
Traceback (most recent call last):
File "/usr/bin/
from UpdateManager.
File
"/usr/lib/
38, in <module>
import apt
ImportError: No module named apt
Error in sys.excepthook:
Traceback (most recent call last):
File "/var/lib/
38, in apport_excepthook
from apport.fileutils import likely_packaged
File "/var/lib/
in <module>
from apport.report import Report
File "/var/lib/
<module>
from problem_report import ProblemReport
File "/var/lib/
in <module>
import zlib, base64, time, UserDict, sys, gzip, struct
ImportError: No module named base64
Original exception was:
Traceback (most recent call last):
File "/usr/bin/
from UpdateManager.
File
"/usr/lib/
38, in <module>
import apt
ImportError: No module named apt
Olivier wrote:
> Your question #19383 on Ubuntu changed:
> https:/
>
> Status: Open => Answered
>
> Olivier proposed the following answer:
> that is really weird....
>
> to know what is happening,
>
> search for the command associated with the programs that fail to launch.
> to do that, right click on the "Application menu" and choose edit.
> browse the menu editor to find the right launcher and the associated
> command. copy&paste this command in a terminal and report here the
> errors
>
>
Revision history for this message
|
#12 |
Hi
I sent error reports for Software Sources; Add/Remove...; and Update
Manager.
Since then I re-installed the deskbar-applet 2.20.0 (which seems to have
caused the problem in the first place). When I tried to add it to the
Panel, the Bug Buddy window popped up again and showed a report which
also alluded to base64 not being available. See that report below.
-------
Distribution: Ubuntu 7.10 (gutsy)
Gnome Release: 2.20.1 2007-10-19 (Ubuntu)
BugBuddy Version: 2.18.1
System: Linux 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10300000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Glider
Icon Theme: gnome
Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0
CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0
timeout: 0 it_real_value: 0 frequency: 0
----------- .xsession-errors (310 sec old) -------
Original exception was:
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/lib/
435, in main
from AppInstall import AppInstall
File "/usr/lib/
50, in <module>
from widgets.AppListView import AppListView
File
"/usr/lib/
line 9, in <module>
from xml.sax.saxutils import escape
File "/usr/lib/
8, in <module>
import os, urlparse, urllib2, types
File "/usr/lib/
import base64
ImportError: No module named base64
-------
Traceback (most recent call last):
File "/usr/lib/
from deskbar.
File "/usr/lib/
line 9, in <module>
from deskbar.
File
"/usr/lib/
line 7, in <module>
from deskbar.
File
"/usr/lib/
line 8, in <module>
from deskbar.
File
"/usr/lib/
line 2, in <module>
import dbus
File "/var/lib/
<module>
from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus
File "/var/lib/
<module>
from __future__ import generators
ImportError: No module named __future__
-------
Any ideas about how to get my Add/Remove...; Software Sources; and
Update Manager back again?
Where do I get "apt", "base64"; and "_future_" so that these programmes
(including the deskbar-applet) can import them?
Olivier wrote:
> Your question #19383 on Ubuntu changed:
> https:/
>
> Status: Open => Answered
>
> Olivier proposed the following answer:
> that is really weird....
>
> to know what is happening,
>
> search for the command associated with the programs that fail to launch.
> to do that, right click on the "Application menu" and choose edit.
> browse the menu editor to find the right launcher and the associated
> command. copy&paste this command in a terminal and report here the
> errors
>
>
Revision history for this message
|
#13 |
Try to enter in a terminal
sudo apt-get install --reinstall python2.5
Tell me if that helps
Revision history for this message
|
#14 |
Probably you have changed /usr/bin/python link from 2.5 to 2.4, try:
sudo ln -sf /usr/bin/python2.5 /usr/bin/python
I had the same problem
Revision history for this message
|
#15 |
I have in the meantime bought a new computer and re-installed Ubuntu, so the problem no longer exists.
Revision history for this message
|
#16 |
Thank you for your effort, which I appreciate very much.
I have in the menatime bought a new computer and have re-installed
Ubuntu, so the problem no longer exists.
repley wrote:
> Your question #19383 on Ubuntu changed:
> https:/
>
> repley proposed the following answer:
> Probably you have changed /usr/bin/python link from 2.5 to 2.4, try:
>
> sudo ln -sf /usr/bin/python2.5 /usr/bin/python
>
> I had the same problem
>
>
Revision history for this message
|
#17 |
I had this problem on one box too. I solved it by temporarily making the default version 2.4. This can be done in
/usr/share/
I also needed to change the first line of the update script that was extracted into /tmp/tmp123123/
Note it is probably not recommended to change the default python version.
Revision history for this message
|
#18 |
Thanks a lot. I have, however, upgraded to a new box, so the question no
longer applies. Bit it is heartening to know there is such a dedicated
and concerned community out there willing to give their time to solve
problems like this.
Fallen wrote:
> Your question #19383 on Ubuntu changed:
> https:/
>
> Fallen posted a new comment:
> I had this problem on one box too. I solved it by temporarily making the
> default version 2.4. This can be done in
>
> /usr/share/
>
> I also needed to change the first line of the update script that was
> extracted into /tmp/tmp123123/
> python2.4
>
> Note it is probably not recommended to change the default python
> version.
>
>