Can't edit sources

Bug #1076165 reported by Pierre Rudloff
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Since Quantal, I can't edit or delete sources.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: software-properties-gtk 0.92.9
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic i686
ApportVersion: 2.6.1-0ubuntu6
Architecture: i386
Date: Wed Nov 7 23:26:11 2012
ExecutablePath: /usr/bin/software-properties-gtk
InterpreterPath: /usr/bin/python3.2mu
MarkForUpload: True
PackageArchitecture: all
SourcePackage: software-properties
UpgradeStatus: Upgraded to quantal on 2012-10-25 (13 days ago)

Revision history for this message
Pierre Rudloff (rudloff) wrote :
Revision history for this message
Edward Donovan (edward.donovan) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately, we cannot work on this bug because your description didn't include enough information. You may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem.

We have instructions on debugging some types of problems at http://wiki.ubuntu.com/DebuggingProcedures

At a minimum, we need:
1. the specific steps or actions you took that caused you to encounter the problem,
2. the behavior you expected, and
3. the behavior you actually encountered (in as much detail as possible).
Thanks!

Changed in software-properties (Ubuntu):
status: New → Incomplete
Revision history for this message
Pierre Rudloff (rudloff) wrote :

Nothing happened when I clicked on the edit or delete buttons.
But I edited the files manually and now it crashes at launch:
pierre@pierre-MacBook:~$ software-properties-gtk
WARNING:root:could not open file '/etc/apt/sources.list.d/afj-trg-oneiric.list'

WARNING:root:could not open file '/etc/apt/sources.list.d/rabbitvcs-ppa-precise.list'

WARNING:root:could not open file '/etc/apt/sources.list.d/afj-trg-oneiric.list'

WARNING:root:could not open file '/etc/apt/sources.list.d/rabbitvcs-ppa-precise.list'

gpg: /tmp/tmpml2w1g/trustdb.gpg: trustdb created
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 169, in __init__
    self.show_keys()
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 828, in show_keys
    for key in self.apt_key.list():
  File "/usr/lib/python3/dist-packages/softwareproperties/AptAuth.py", line 77, in list
    for line in p:
  File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1125: ordinal not in range(128)

Revision history for this message
adamski99 (adamsomerville) wrote :

hi,
i have a similar problem with editing my repositorys, i have tried various things and edited /var/lib/dpkg/available and /var/lib/dpkg/status in an atempt to fix the issue, i thought it might be this bug: https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1053749

whenever i try to open software-propertys-gtk i get:

$ software-properties-gtk
gpg: /tmp/tmp5icpr7/trustdb.gpg: trustdb created
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 169, in __init__
    self.show_keys()
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 834, in show_keys
    for key in self.apt_key.list():
  File "/usr/lib/python3/dist-packages/softwareproperties/AptAuth.py", line 77, in list
    for line in p:
  File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1140: ordinal not in range(128)

Is there any way to reset / reinstal this bit of the repo management??

a way to get back the "default" /var/lib/dpkg/available and /var/lib/dpkg/status??

im running 12.10

many thanks

ads

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for software-properties (Ubuntu) because there has been no activity for 60 days.]

Changed in software-properties (Ubuntu):
status: Incomplete → Expired
Revision history for this message
W (ehesember) wrote :

I don't know all the specifics but this bug occurs when trying to parse some of the gpg info. What seemed to work for me was deleting (or renaming) /etc/apt/trusted.gpg. I don't know the full ramifications are for doing this but one side effect is getting "can't verify" warnings when apt-get updating.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.