Bug#1073503: reportbug fails and exits under chroot
Package: reportbug
Version: 12.0.0
Severity: normal
X-Debbugs-Cc: budheal@gmail.com
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
I am running this system with a USB key or the 12.5.0 DLBD because
the latest upgrade failed on the last step (apt full-upgrade). In
order to investigate, I use chroot. Why not use the info already set
up for reportbug.
* What exactly did you do (or not do) that was effective (or
ineffective)?
I started the bug report, up to typing "10" for none and pressed
enter.
* What was the outcome of this action?
Gathering additional data, this may take a while...
Traceback (most recent call last):
File "/usr/bin/reportbug", line 2369, in <module>
main()
File "/usr/bin/reportbug", line 1091, in main
return iface.user_interface()
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/reportbug", line 2186, in user_interface
utils.exec_and_parse_bugscript(handler, bugexec, ui.system)
File "/usr/lib/python3/dist-packages/reportbug/utils.py", line 1837, in exec_and_parse_bugscript
fh, filename = TempFile()
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/reportbug/tempfiles.py", line 122, in TempFile
fh, filename = tempfile.mkstemp(suffix, prefix, dir, text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/tempfile.py", line 473, in mkstemp
prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/tempfile.py", line 265, in _sanitize_params
dir = gettempdir()
^^^^^^^^^^^^
File "/usr/lib/python3.11/tempfile.py", line 438, in gettempdir
return _os.fsdecode(_gettempdir())
^^^^^^^^^^^^^
File "/usr/lib/python3.11/tempfile.py", line 431, in _gettempdir
tempdir = _get_default_tempdir()
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/tempfile.py", line 362, in _get_default_tempdir
raise FileNotFoundError(_errno.ENOENT,
FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home/budheal']
* What outcome did you expect instead?
I thought reportbug would work even on the admittedly-broken system.
*** End of the template - remove these template lines ***
-- Package-specific info:
** Environment settings:
INTERFACE="text"
** /home/pirc/.reportbugrc:
reportbug_version "12.0.0"
mode standard
ui text
realname "Bud Heal"
email "budheal@gmail.com"
no-cc
list-cc-me
smtphost reportbug.debian.org
-- System Information:
Debian Release: 12.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.1.0-18-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages reportbug depends on:
ii apt 2.6.1
ii python3 3.11.2-1+b1
ii python3-reportbug 12.0.0
ii sensible-utils 0.0.17+nmu1
reportbug recommends no packages.
Versions of packages reportbug suggests:
pn claws-mail <none>
ii debconf 1.5.82
pn debsums <none>
pn default-mta | postfix | exim4 | mail-transport-agent <none>
pn dlocate <none>
pn emacs-bin-common <none>
ii file 1:5.44-3
ii gnupg 2.2.40-1.1
pn python3-urwid <none>
pn reportbug-gtk <none>
ii xdg-utils 1.1.3-4.1
Versions of packages python3-reportbug depends on:
ii apt 2.6.1
ii file 1:5.44-3
ii python3 3.11.2-1+b1
ii python3-apt 2.6.0
ii python3-debian 0.1.49
ii python3-debianbts 4.0.1
ii python3-requests 2.28.1+dfsg-1
ii sensible-utils 0.0.17+nmu1
python3-reportbug suggests no packages.
-- no debconf information
Reply to: