Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #261849
| From | Michel Verdier <mv524@free.fr> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: apt-get aborts in subshell with redirections on Debian 12 |
| Date | 2023-09-24 12:10 +0200 |
| Message-ID | <HhudP-bcpK-9@gated-at.bofh.it> (permalink) |
| References | <HhrSF-baRk-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2023-09-24, John Crawley wrote: > errors=$( sudo apt-get install mirage 2>&1 1>/dev/tty ) > echo "$errors" #!/bin/bash errors=$(sudo apt-get install unknown 2>&1 1>/dev/tty) echo "output: $errors" errors=$(sudo apt-get install mirage 2>&1 1>/dev/tty) echo "output: $errors" debian version 12.1 ii apt 2.6.1 amd64 ii bash 5.2.15-2+b2 amd64 ii sudo 1.9.13p3-1+deb12u1 amd64 > Going straight to "Abort" which is what happens if apt has no stdin. But surely it does? > > Running the same command on Debian 11 works as expected, waiting for USER response at the prompt. # ./test Reading package lists... Done Building dependency tree... Done Reading state information... Done output: E: Unable to locate package unknown Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: gir1.2-gexiv2-0.10 The following NEW packages will be installed: gir1.2-gexiv2-0.10 mirage 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 120 kB of archives. After this operation, 649 kB of additional disk space will be used. Do you want to continue? [Y/n] n Abort. output: It waits until I type 'n' Perhaps you have another command disturbing tty ? Or check sudo ?
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-24 09:40 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Michel Verdier <mv524@free.fr> - 2023-09-24 12:10 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-24 14:40 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-25 02:20 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-25 02:40 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-25 05:00 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-25 05:20 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-25 05:50 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-25 06:40 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-25 13:30 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-26 04:40 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Michael <ml@hemathor.de> - 2023-09-25 11:20 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-25 13:30 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-26 05:00 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-26 05:10 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-26 05:20 +0200
sudo+use_pty+urxvt+pipe [WAS: apt-get aborts in subshell with redirections on Debian 12] John Crawley <john@bunsenlabs.org> - 2023-12-24 09:50 +0100
csiph-web