Page 1 of 1

"Software Sources" will not open

Posted: Fri Nov 23, 2012 9:21 pm
by jswhite
Okay, so I've got a very weird issue.

Installed Nadia the other day, totally fresh install. Post-install, I added Google apps (Earth/video talk/Chrome) to get the Google software repos added to apt, no problems there. Then I tried adding the Medibuntu repo using the following command (copied/pasted exactly from the Medibuntu site):

Code: Select all

sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
I've done this across several installs and never had a problem, but this time I got a 404 error and it aborted. Afterwards, I have not been able to open "Software Sources" at all. Going through Synaptic (Settings -> Repositories), nothing happens. It's like it attempts to open something, then immediately goes back to Synaptic. Going through the Software Manager (Edit -> Software Sources) I get the same result. Oddly, there also seems to be a "not found" icon next to Software Sources in the manager (black icon with a red circle/slash through it).

Now I don't know for certain that this was caused by the borked up Medibuntu repository install, because I didn't actually try to open Software Sources before that. But, since that time, it's not working at all. I can manually edit repositories (/etc/apt/sources.list), I can use any package managers (or apt-get) and they appear to work exactly as they would be expected to. But trying to open "Software Sources" just straight up fails.

Anyone else see this issue and/or have an idea of how to fix it?

Re: "Software Sources" will not open

Posted: Sun Nov 25, 2012 5:40 am
by ripley
Yep, same problem here. I did make some changes to the system since installing and haven't tried it before that but I think the problem is in a python script.
When trying to open 'software-properties-gtk' via teminal I get:
--------------------------------------------------------------------
gpg: /tmp/tmp836sj8/trustdb.gpg: trustdb created
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 162, in packages_for_modalias
cache_map = packages_for_modalias.cache_maps[apt_cache_hash]
KeyError: -1063479186

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/software-properties-gtk", line 103, in <module>
app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 178, in __init__
self.init_drivers()
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 1097, in init_drivers
self.devices = detect.system_device_drivers()
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 415, in system_device_drivers
for pkg, pkginfo in system_driver_packages(apt_cache).items():
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 319, in system_driver_packages
for p in packages_for_modalias(apt_cache, alias):
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 164, in packages_for_modalias
cache_map = _apt_cache_modalias_map(apt_cache)
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 129, in _apt_cache_modalias_map
m = package.candidate.record['Modaliases']
File "/usr/lib/python3/dist-packages/apt/package.py", line 429, in record
return Record(self._records.record)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xeb in position 121: invalid continuation byte
---------------------------------------------------
After that I checked the processes and 'software-properties-gtk' is in 'zombie' state.
Anyone a solution?

Re: "Software Sources" will not open

Posted: Sun Nov 25, 2012 9:01 am
by GeneC
This may be totally unrelated to both of your problems, but you both have 'tweaked' your systems some.
I noticed this same problem after un-installing Mint Update Manager= mintinstall (-- I use Synaptic), Software Sources worked properly again after a re-install of mintinstall. Might check to see if you still have it?
If not that, it may be something you recently removed that prevents Software Sources (software-properties-gtk) from opening.

Re: "Software Sources" will not open

Posted: Sun Nov 25, 2012 12:15 pm
by ripley
uninstalled an reinstalled mintinstall but no change...

Re: "Software Sources" will not open

Posted: Mon Nov 26, 2012 6:31 pm
by areynaldos
Same here... I installed Nadia on Friday, and today I can't open the software sources, same error code.

The only thing that I've done was to install some of the updates that were being pushed from the Update Manager.

Any help would be greatly appreciated.

I should say that I didn't try to uninstall mintinstall, since Synaptic wants to remove the whole mint-meta-package.

Re: "Software Sources" will not open

Posted: Mon Nov 26, 2012 6:45 pm
by areynaldos
SOLVED!


Seems to be a confirmed bug in Ubuntu https://bugs.launchpad.net/ubuntu/+sour ... ug/1062793 and https://bugs.launchpad.net/ubuntu/+sour ... ug/1053749

In order to fix it, you have to edit /var/lib/dpkg/status looking for the "incorrect" characters. In my case (as in the bug report) it was related to the strings for Caldav.

sudo gedit /var/lib/dpkg/status

Then look for "caldav"... The name of the maintainer is "Mickal Guessant"... note the strange characters in Mickael.... I just changed it to "Mickal" and now it works.

Follow the Launchpad thread if you want more information.

Cheers,

Re: "Software Sources" will not open

Posted: Mon Nov 26, 2012 6:54 pm
by GeneC
I did not mean to suggest UN-installing/RE-installing mintupdate.
I merely mentioned that I noticed software-sources did not work, after I had removed mintupdate from LMDE. I dont use it.
This does not appear to be related to the OP's problem...., please ignore :wink:

Re: "Software Sources" will not open

Posted: Mon Nov 26, 2012 6:57 pm
by areynaldos
Thanks GeneC... I just edited my comment above to explain the fix that worked for me.

Cheers,

Re: "Software Sources" will not open

Posted: Mon Nov 26, 2012 6:58 pm
by GeneC
Glad you got it sorted out.. :)

Re: "Software Sources" will not open

Posted: Mon Nov 26, 2012 8:49 pm
by jswhite
Sadly, this did nothing for me, because I don't have the davmail installed and I don't offhand notice another package with similar problems. I guess I'll just have to troll through the status file line by line and see if I can uncover something. If I find the issue, I'll report back.

Re: "Software Sources" will not open

Posted: Thu Dec 06, 2012 9:28 am
by ripley
FIXED it!
I don't have davmail installed either but I noticed that trying to open with "sudo gedit /var/lib/dpkg/status" it had a problem reading the character code.
After setting it to "western" I could read it. Then I copied the content to a new textfile in pluma on my Desktop directory calling it "status".
Opened a terminal and:
cd /var/lib/dpkg/
sudo mv status statusold
sudo cp /home/user/Desktop/status status
and that was it, it works!
Reading the other mentioned forums, the problem has to do with the character encoding...

Re: "Software Sources" will not open

Posted: Thu Dec 13, 2012 7:00 pm
by cygnus
areynaldos wrote:SOLVED!


Seems to be a confirmed bug in Ubuntu https://bugs.launchpad.net/ubuntu/+sour ... ug/1062793 and https://bugs.launchpad.net/ubuntu/+sour ... ug/1053749

In order to fix it, you have to edit /var/lib/dpkg/status looking for the "incorrect" characters. In my case (as in the bug report) it was related to the strings for Caldav.

sudo gedit /var/lib/dpkg/status

Then look for "caldav"... The name of the maintainer is "Mickal Guessant"... note the strange characters in Mickael.... I just changed it to "Mickal" and now it works.

Follow the Launchpad thread if you want more information.

Cheers,
Dude, you nailed it. Had the same problem, fixed the bad character, now it works.

Re: "Software Sources" will not open

Posted: Fri Dec 14, 2012 1:31 pm
by viperman
ripley wrote:FIXED it!
I don't have davmail installed either but I noticed that trying to open with "sudo gedit /var/lib/dpkg/status" it had a problem reading the character code.
After setting it to "western" I could read it. Then I copied the content to a new textfile in pluma on my Desktop directory calling it "status".
Opened a terminal and:
cd /var/lib/dpkg/
sudo mv status statusold
sudo cp /home/user/Desktop/status status
and that was it, it works!
Reading the other mentioned forums, the problem has to do with the character encoding...
This worked for me! This was an obscure fix. I would never thought about the character code being messed up. Thanks so much.

Re: "Software Sources" will not open

Posted: Tue Oct 15, 2013 10:12 am
by pablomusa
Actually in my case there were several erros in both:
/var/lib/dpkg/status & /var/lib/dpkg/available

The fix as mentioned by others is just fixing the strange chars all over the files.
I chose to ignore them and fixed as follow:

# become root, "sudo su -" is an option
su -
cd /var/lib/dpkg/

# create backup
cp available available_bkp
cp status status_bkp

# generate new files ignoring strange chars
iconv -f utf-8 -t utf-8 -c available_bkp > /tmp/available
iconv -f utf-8 -t utf-8 -c status_bkp > /tmp/status

# move generated files back to main folder
mv /tmp/available available
mv /tmp/status status

# check if things are ok
iconv available > /dev/null
iconv status > /dev/null

# if nothing is printed, then remove backup files
rm available_bkp
rm status_bkp

Abs