Sorry about taking so long to get back to you: I have been really busy
recently.

> Hello Calum,
> thanks for using apt-listbugs and for caring about reporting the
> issue
> you experienced.

Thank you for your quick responce!  Besides, what is the point of
running sid if not to find bugs and make someone else fix them?

> OK, this launches querybts from package reportbug, which you have on
> your system:

Sounds good...

> OK, please note that this is a menu of the querybts user interface...

I got that far

> First of all: it seems to me that you have firefox-esr unpacked, but
> not configured. In other words, firefox-esr does not seem to be
> properly installed on your system:
> 
> [from System Information in your bug report...]
> > iu  firefox-esr [www-browser]  68.4.1esr-1
> [...]
> 
> This could be responsible for a number of errors you encounter, when
> trying to start firefox...

Okay.  I did test a bit, and firefox is definatly working: so if its
not unpacked, then somthing weird is going on...

> I guess xdg-open (internally used by querybts to find a browser)
> eventually selected a text browser, such as lynx or w3m:

It did.  I think the errors made that more clear: I'm setting up a
controlled test to capture a few.

> I tried to reproduce the issue, but I was not successful: querybts
> started w3m in my case, without any firefox-related errors.

So much for this being a nice, open-and-shut case.

> But the selected browser heavily depends on the system configuration,
> on installed packages, and so forth...
> I am not sure I will be able to investigate this for your system:
> I'll
> have to look deeper, in order to understand which are the key
> questions
> I should ask to you...

Ask away

> How did you start the root session where you were upgrading you
> system?
> Were you inside a desktop session?
> Did you open a terminal?
> Did you use
> 
>   $ su -
> 
> to become root and then start apt or aptitude?
> Or were you using sudo?

So, I was in the GNOME desktop, and to get to apt I opened GNOME shell
(as a normal user) and used sudo apt update, followed by sudo apt
upgrade.  See the reproduced log I attached: basically, just a typical
go-to-the-menu-and-click-on-terminal type operation.

> Since you have s6 installed, apt-listbugs may have launched querybts
> as
> your regular (non-root) user, through s6-setuidgid. However, this
> does
> not correspond to a "full-featured" user session, hence access to
> your
> "normal" user environment is partially unachievable...
> It's complicated (and it will slightly change in the next version of
> apt-listbugs!): I will try to give more details on this, after I
> receive more info from you...

Okay: good to know.

> I should look into querybts and reportbug code more deeply, to be
> sure,
> but maybe in that case querybts ran a text browser as root, thus
> introducing fewer indirectness levels...

> Please provide the requested additional info and let's see whether we
> can shed more light on the issue.

Okay.  I also ran a more controlled test: attached is the text file of
my logs.  I annotated them with a few comments as well, because why
not?

Thanks again: I kind of rely on listbugs to be sure my system isn't
going to go nuclear on me.

> Awkward configuration: you seem to be worried about minor bugs, but
> not
> about normal bugs...

You know how it is: everyone tells you to not sweat the little things,
but you still sweat them enough that you miss the "normal" bugs

Thanks for the catch: I was trying to list all, but without wishlist
bugs: I guess I forgot about the normies.  I switched to using just
"all" lol.
//So, to be sure to trigger the problem, I decided to try and install a known-bad
//package. McComix happened to be at the top of the list when I used the BTS
//web interface to find critical bugs.  I'll try to note down all the things
//not included in the log directly.
//yes, all lines beginning with the c-style comments are me, after the fact.
//(the reason I am in apt.conf.d is to make the fix I meantioned to listbugs)

calum@CalumsDebianSupreme:/etc/apt/apt.conf.d$ sudo apt install mcomix
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  unrar | libunrar mupdf-tools
The following NEW packages will be installed:
  mcomix
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,637 kB of archives.
After this operation, 3,972 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian unstable/main amd64 mcomix all 1.2.1mcomix3+git20191129-1 [2,637 kB]
Fetched 2,637 kB in 1s (1,954 kB/s) 
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
critical bugs of mcomix (→ 1.2.1mcomix3+git20191129-1) <Outstanding>
 b1 - #947508 - mcomix: Upgrade to Python 3 fork deletes user bookmarks
important bugs of mcomix (→ 1.2.1mcomix3+git20191129-1) <Outstanding>
 b2 - #945493 - mcomix: Library shows not all Thumbnails
normal bugs of mcomix (→ 1.2.1mcomix3+git20191129-1) <Outstanding>
 b3 - #815483 - mcomix: Error opening cbr file
 b4 - #928086 - mcomix: /tmp is not for large files
wishlist bugs of mcomix (→ 1.2.1mcomix3+git20191129-1) <Outstanding>
 b5 - #943642 - Tablet page flipping
Summary:
 mcomix(5 bugs)
//Paused for input here: I was worried about them thumbnails!
Are you sure you want to install/upgrade the above packages? [Y/n/?/...] b2
Retrieving report #945493 from Debian bug tracking system...
//Displayed the report in a less-style format (I'm not sure it was less, but it
//was pagninated plain text)
What do you want to do now? [N|x|o|r|b|e|q|?]? b
//Trigger the bug: this is where the pop-ups start
Error: Access was denied while trying to open files in your profile directory.
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied

(firefox-esr:36029): dconf-CRITICAL **: 19:57:57.651: unable to create directory '/root/.cache/dconf': Permission denied.  dconf will not work properly.

(firefox-esr:36029): dconf-CRITICAL **: 19:57:57.651: unable to create directory '/root/.cache/dconf': Permission denied.  dconf will not work properly.
//Pop-up comes here: terminal waits for me to hit "okay"
//The number of error lines varies between tests: sometimes the firefox-esr line
//prints twice, other time thrice.  The ammount of time I wait to hit okay might
//be what influences that.
Error: Access was denied while trying to open files in your profile directory.
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied
//I know, right? WTF is pulseaudio doing here? I'm not playing any music (though there are
//heaphones connected)

(firefox-esr:36079): dconf-CRITICAL **: 19:58:00.058: unable to create directory '/root/.cache/dconf': Permission denied.  dconf will not work properly.

(firefox-esr:36079): dconf-CRITICAL **: 19:58:00.059: unable to create directory '/root/.cache/dconf': Permission denied.  dconf will not work properly.

(firefox-esr:36079): dconf-CRITICAL **: 19:58:00.069: unable to create directory '/root/.cache/dconf': Permission denied.  dconf will not work properly.
//Same situation: terminal pauses until I hit okay.  Here you also see the
//esr error print three times
Error: Access was denied while trying to open files in your profile directory.
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied

(firefox-esr:36125): dconf-CRITICAL **: 19:58:00.882: unable to create directory '/root/.cache/dconf': Permission denied.  dconf will not work properly.

(firefox-esr:36125): dconf-CRITICAL **: 19:58:00.882: unable to create directory '/root/.cache/dconf': Permission denied.  dconf will not work properly.
//Final "okay" is here
/usr/bin/xdg-open: 870: iceweasel: not found
/usr/bin/xdg-open: 870: seamonkey: not found
/usr/bin/xdg-open: 870: mozilla: not found
/usr/bin/xdg-open: 870: epiphany: not found
/usr/bin/xdg-open: 870: konqueror: not found
/usr/bin/xdg-open: 870: chromium: not found
/usr/bin/xdg-open: 870: chromium-browser: not found
/usr/bin/xdg-open: 870: google-chrome: not found
//The plain text viewer opened here: I quit out of it
What do you want to do now? [N|x|o|r|b|e|q|?]? q
Exiting.
Are you sure you want to install/upgrade the above packages? [Y/n/?/...] n
**********************************************************************
****** Exiting with an error in order to stop the installation. ******
**********************************************************************
E: Sub-process /usr/bin/apt-listbugs apt returned an error code (10)
E: Failure running script /usr/bin/apt-listbugs apt
//Ending was as expected

//Here, I run querybts as sudo to show the differences
calum@CalumsDebianSupreme:/etc/apt/apt.conf.d$ sudo querybts 947508
//I often have connection problems: that could explain the magic cookies.  However,
//they are usually cyclical, after a certain period of use.  And we were in the 'happy'
//portion of said cycles when I ran these/
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Retrieving report #947508 from Debian bug tracking system...
What do you want to do now? [x|O|r|b|e|q|?]? b
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Error: cannot open display: :1
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Error: cannot open display: :1
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Error: cannot open display: :1
/usr/bin/xdg-open: 870: iceweasel: not found
/usr/bin/xdg-open: 870: seamonkey: not found
/usr/bin/xdg-open: 870: mozilla: not found
/usr/bin/xdg-open: 870: epiphany: not found
/usr/bin/xdg-open: 870: konqueror: not found
/usr/bin/xdg-open: 870: chromium: not found
/usr/bin/xdg-open: 870: chromium-browser: not found
/usr/bin/xdg-open: 870: google-chrome: not found
//Same text viewer opened up.
What do you want to do now? [x|O|r|b|e|q|?]? q
Exiting.

Reply via email to