Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4121  / 2 Years ago, sat, may 14, 2022, 2:38:42

I'm using Ubuntu 12.10. Yesterday I noticed that software-properties-gtk does not work anymore. I have no idea why and what to do. When I start via Terminal I get the following output:



chocobai@pfubuntu:~$ software-properties-gtk 
gpg: /tmp/tmpgkhlnl/trustdb.gpg: trust-db erzeugt
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: 4726621

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 0xfc in position 777: invalid start byte
chocobai@pfubuntu:~$


What I want to do is to completely reinstall the proprietary ATI graphic drivers, because the game DungeonDefenders does not start. Also software-properties-gtk is useful to manage repositories.



I thought about to apt-get purge software-properties-gtk but I'm not sure whether this is safe or I'd break something.


More From » 12.10

 Answers
0

I had the same problem but clearing cache didn't sort it. It turned out to be a known issue. Read through it, I could fix it doing the following:




  1. to find the offending character:



    iconv -f utf8 -t ucs-2le /var/lib/dpkg/status  >/dev/null || echo "non-UTF-8 found"

  2. removing the offending non-UTF8 character, you should be able to find the character with vim or nano from the line number reported above.




Hope that helps.


[#33342] Monday, May 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ofunn

Total Points: 164
Total Questions: 116
Total Answers: 116

Location: Liberia
Member since Fri, Oct 22, 2021
3 Years ago
;