I recently installed nvidia-331
driver via Software & Updates
-> Additional Drivers
tab.
Now when I use:
sudo apt-get install <package>
or
sudo apt-get remove <package>
apt-get
ends up with following errors:
lyn@antares:~$ sudo apt-get install hexedit
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
linux-image-generic
Use 'apt-get autoremove' to remove it.
The following NEW packages will be installed:
hexedit
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/24.6 kB of archives.
After this operation, 88.1 kB of additional disk space will be used.
Selecting previously unselected package hexedit.
(Reading database ... 226032 files and directories currently installed.)
Preparing to unpack .../hexedit_1.2.13-1_amd64.deb ...
Unpacking hexedit (1.2.13-1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up nvidia-331 (331.89-0ubuntu1~xedgers14.04.2) ...
INFO:Enable nvidia-331
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Traceback (most recent call last):
File "/usr/bin/quirks-handler", line 65, in <module>
operation_status = main(options)
File "/usr/bin/quirks-handler", line 44, in main
quirks = Quirks.quirkapplier.QuirkChecker(options.package_enable, path=quirks_path)
File "/usr/lib/python3/dist-packages/Quirks/quirkapplier.py", line 38, in __init__
self._system_info = self.get_system_info()
File "/usr/lib/python3/dist-packages/Quirks/quirkapplier.py", line 64, in get_system_info
return quirk_info.get_dmi_info()
File "/usr/lib/python3/dist-packages/Quirks/quirkinfo.py", line 46, in get_dmi_info
'class', 'dmi', 'id', item)).read().strip()
File "/usr/lib/python3.4/codecs.py", line 313, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
dpkg: error processing package nvidia-331 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up hexedit (1.2.13-1) ...
Errors were encountered while processing:
nvidia-331
E: Sub-process /usr/bin/dpkg returned an error code (1)
I already tried to remove nvidia drivers using this topic however apt-get
still shows almost the same error.
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte