[Aptitude-devel] Bug#797785: Bug#797785: aptitude: TUI to catch debtags warnins/errors
Manuel A. Fernandez Montecelo
manuel.montezelo at gmail.com
Sun Jan 10 19:01:45 UTC 2016
Control: tags -1 - unreproducible
@ APT deities: could you please have a look at the bug report and tell
me your opinion?
Hi,
2016-01-10 16:56 Pavel Reznicek:
>
>Hi,
>
>>How/when does the errors show, when viewing the package information
>>screen, or with other operations?
>
>The error messages appears after running "Update package list" from
>the aptitude ncruses gui. Attached is a screenshot.
Oh, I see, I can reproduce it now. It happens the same with "apt-get
update" (see below).
The problem seems to be that the in the function RunScripts() from
libapt, when executing debtags (it has to be installed on the system),
the output of the program doesn't get silenced/captured in any way, just
printed to the terminal as it is.
I don't know if the APT team can or will want to change this behaviour
(to add this output to the apt error mechanism, for example). It
doesn't seem to be a big problem for apt, not having curses interfaces,
but this might affect other users of the library.
I am not sure if we can do much about this from aptitude's side,
otherwise.
# apt-get update
Get:1 http://repository.elivecd.org lenny InRelease [16.9 kB]
Ign:4 http://www.rarewares.org/debian/packages/unstable ./ InRelease
Ign:1 http://repository.elivecd.org lenny InRelease
Hit:5 http://repository.elivecd.org lenny/drivers i386 Packages
Hit:6 http://debug.mirrors.debian.org/debian-debug unstable-debug InRelease
Hit:7 http://www.rarewares.org/debian/packages/unstable ./ Release
Hit:8 http://repository.elivecd.org lenny/efl i386 Packages
Ign:9 http://www.rarewares.org/debian/packages/unstable ./ Release.gpg
[...]
Fetched 16.9 kB in 2s (6,067 B/s)
Traceback (most recent call last):
File "/usr/bin/debtags", line 699, in <module>
main()
File "/usr/bin/debtags", line 693, in main
sys.exit(action.main(args))
File "/usr/bin/debtags", line 637, in main
for pkg, tags in self.tags_from_apt():
File "/usr/bin/debtags", line 260, in tags_from_apt
tags = tags_from_apt_record(cand.record)
File "/usr/lib/python3/dist-packages/apt/package.py", line 592, in record
return Record(self._records.record)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xae in position 681: invalid start byte
Reading package lists... Done
W: GPG error: http://repository.elivecd.org lenny InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1C79A27CD5E81909
W: The repository 'http://repository.elivecd.org lenny InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: There is no public key available for the following key IDs:
1C79A27CD5E81909
W: The repository 'http://www.rarewares.org/debian/packages/unstable ./ Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Cheers.
--
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>
More information about the Aptitude-devel
mailing list