LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-28-2010, 07:44 AM   #1
esky64
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Rep: Reputation: 0
Unhappy corrupt system 9.10 amd64


Hi I have what I think is a corrupt file in the system area.
I can't open update manager, ubuntu software centre,software sources.
when I use terminal I get the following

chris@chris-desktop:~$ ubuntu-bug
Traceback (most recent call last):
File "/usr/share/apport/apport-gtk", line 347, in <module>
app = GTKUserInterface()
File "/usr/share/apport/apport-gtk", line 35, in __init__
apport.ui.UserInterface.__init__(self)
File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 130, in __init__
self.parse_argv()
File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 460, in parse_argv
optparser = optparse.OptionParser(_('%prog [options] [symptom|pid|package|program path|.apport/.crash file]'))
File "/usr/lib/python2.6/dist-packages/apport/__init__.py", line 9, in unicode_gettext
trans = gettext.gettext(str)
File "/usr/lib/python2.6/gettext.py", line 581, in gettext
return dgettext(_current_domain, message)
File "/usr/lib/python2.6/gettext.py", line 545, in dgettext
codeset=_localecodesets.get(domain))
File "/usr/lib/python2.6/gettext.py", line 493, in translation
t = _translations.setdefault(key, class_(open(mofile, 'rb')))
File "/usr/lib/python2.6/gettext.py", line 180, in __init__
self._parse(fp)
File "/usr/lib/python2.6/gettext.py", line 273, in _parse
magic = unpack('<I', buf[:4])[0]
struct.error: unpack requires a string argument of length 4
chris@chris-desktop:~$
Thanks for any help
 
Old 06-28-2010, 09:59 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,293

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
That's a typically spectacular python crash. Some python script barfed.
Can you reinstall from the install cd?
 
Old 06-29-2010, 12:28 AM   #3
esky64
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
I have tried before to upgrade python via terminal looked like it worked fine.
Yes I can reinstall or well upgrade to 10.04 LTS AMD64, the only thing stpping me is I have a dual boot system and have /home in it's own partition and I'm nervous about getting it wrong.
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00e600e6

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/sda2 1913 3824 15358140 83 Linux
/dev/sda3 3825 60801 457667752+ 5 Extended
/dev/sda5 60194 60801 4883760 82 Linux swap / Solaris
/dev/sda6 3825 60193 452783929+ 83 Linux

Partition table entries are not in disk order

Last edited by esky64; 06-29-2010 at 12:32 AM. Reason: added more details
 
Old 06-29-2010, 08:18 AM   #4
esky64
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
I tried this but no good as you can see


chris@chris-desktop:~$ sudo do-release-upgrade
[sudo] password for chris:
Checking for a new ubuntu release
Done Upgrade tool signature
Done Upgrade tool 27s
Done downloading
extracting 'lucid.tar.gz'
authenticate 'lucid.tar.gz' against 'lucid.tar.gz.gpg'
Traceback (most recent call last):
File "/tmp/tmpphopJU/lucid", line 3, in <module>
from DistUpgradeMain import main
File "/tmp/tmpphopJU/DistUpgradeMain.py", line 39, in <module>
from DistUpgradeController import DistUpgradeController
File "/tmp/tmpphopJU/DistUpgradeController.py", line 46, in <module>
from DistUpgradeQuirks import DistUpgradeQuirks
File "/tmp/tmpphopJU/DistUpgradeQuirks.py", line 39, in <module>
from computerjanitor.plugin import PluginManager
File "/tmp/tmpphopJU/computerjanitor/__init__.py", line 44, in <module>
from file_cruft import FileCruft
File "/tmp/tmpphopJU/computerjanitor/file_cruft.py", line 20, in <module>
_ = computerjanitor.setup_gettext()
File "/tmp/tmpphopJU/computerjanitor/__init__.py", line 39, in setup_gettext
t = gettext.translation(domain, localedir=localedir, fallback=True)
File "/usr/lib/python2.6/gettext.py", line 493, in translation
t = _translations.setdefault(key, class_(open(mofile, 'rb')))
 
Old 07-24-2010, 04:41 PM   #5
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2, 15.0
Posts: 635

Rep: Reputation: 154Reputation: 154
What I usually do is:
1. boot from somewhere safe (I have about 6 kernels on my Lilo, but you can use a CD).
2. Make a directory under root that you can work from
mkdir /work
3. Untar packages, (or whatever the equivalent is to Ubuntu) into the
work directory. It does not matter what it creates there.
4. use diff to find differences in the /etc and other control directories
>> diff -r -U4 /work/etc /etc > /work/etc.diff
5. search the diff output for anything suspicious, like a file with most of its contents garbled.
6. rename and or backup anything that you are going to change on your
dead system.
>> cp -a /etc/file1 /etc/file1.crash2010

6. Fix, replace, or other, by using the /work directory as a source.
7. When done erase the /work directory.
8. Deal with all the *.crash2010 as you feel.

This has the advantage that no change gets done without you being able to see and backup and supervise.
 
Old 07-24-2010, 08:19 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Seeing as how you already have a separate /home partition, why not just carve 15 Gig off that and create another logical for 10.04. Install into that specifying your current home (no format) at the partitioning stage.
Ubuntu accommodates this very well. Can even revert in need. Next release keep the 10.04 and install into your current (broken) partition. Flip-flop in future - gives you built-in redundancy.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can boot X86 livecds but not AMD64 livecd to repair my AMD64 Gentoo system ldemaey Gentoo 8 07-23-2009 12:20 PM
file system corrupt mamtasahai1 General 2 01-27-2007 01:58 PM
UFS file system corrupt Tsuroerusu *BSD 3 11-22-2005 10:20 PM
Suse 9.1 (amd64): CD-ROM data is corrupt? dbcoder Linux - Distributions 0 07-15-2004 11:10 AM
corrupt file system michaelc Linux - Newbie 1 12-14-2001 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration