Hi,

On Sun, Oct 23, 2011 at 06:54:19PM +0200, Francesco Poli wrote:
> On Sun, 23 Oct 2011 12:01:06 -0400 Joseph Nahmias wrote:
> 
> [...]
> > Hello,
> 
> Hi Joseph, thanks for your bug report!
> 
Thanks for the prompt reply!
> > 
> > I'm trying out apt-listbugs and it seems to me like it is trying to show me 
> > the bug report in a browser, but it is failing for some reason. Here is the 
> > output I get:
> [...]
> > Are you sure you want to install/upgrade the above packages? [Y/n/?/...] 
> > 644254
> > No protocol specified
> > /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: 
> > could not open display
> >   warnings.warn(str(e), _gtk.Warning)
> 
> This looks weird...
> 
> apt-listbugs should invoke
> 
>   /usr/bin/querybts 644254 < /dev/tty
> 
> when you enter that bug number at the above-quoted prompt.
> 
> It really seems that a graphical web browser is being invoked and fails
> to start, since (I suppose) you are root and have no access to any
> running X server display...
> 
> What happens if you try to manually issue the above-mentioned querybts
> command from the same environment (e.g.: from the same shell with root
> privileges)?

Here's what happens when I run as myself and via sudo:

joe@wakko:~$ /usr/bin/querybts 644254 < /dev/tty
Retrieving report #644254 from Debian bug tracking system...
What do you want to do now? [N|x|o|r|b|e|q|?]? q
Exiting.
joe@wakko:~$ sudo /usr/bin/querybts 644254 < /dev/tty
[sudo] password for joe: 
No protocol specified
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could 
not open display
  warnings.warn(str(e), _gtk.Warning)
Retrieving report #644254 from Debian bug tracking system...
What do you want to do now? [N|x|o|r|b|e|q|?]? q
Exiting.

> Did you customize your root (or system-wide) configuration for
> reportbug? Do you have "ui gtk2" in your /etc/reportbug.conf
> or /root/.reportbugrc , by chance?

Here's what I have:

joe@wakko:~$ sudo egrep -vn '^(#|$)' /etc/reportbug.conf /root/.reportbugrc 
~/.reportbugrc
/etc/reportbug.conf:15:submit
/etc/reportbug.conf:32:query-bts
/etc/reportbug.conf:38:cc
/etc/reportbug.conf:41:config-files
/etc/reportbug.conf:44:compress
/etc/reportbug.conf:103:verify
egrep: /root/.reportbugrc: No such file or directory
/home/joe/.reportbugrc:3:reportbug_version "3.8"
/home/joe/.reportbugrc:5:mode expert
/home/joe/.reportbugrc:7:ui text
/home/joe/.reportbugrc:11:realname "Joseph Nahmias"
/home/joe/.reportbugrc:12:email "j...@nahmias.net"
/home/joe/.reportbugrc:15:no-cc
/home/joe/.reportbugrc:16:header "X-Debbugs-CC: j...@nahmias.net"
/home/joe/.reportbugrc:17:smtphost reportbug.debian.org



Also, another (perhaps related) oddity is that when invoked from apt-get
dist-upgrade it doesn't seem to be in "listbugs mode" when it does this
and I get a message that a particular command can't be run in standalone
mode.

Hope this helps,
--Joe



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to