[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#221728: progress display does not work in chroot w/o /proc mounted



Package: apt
Version: 0.5.14
Severity: normal

When I run apt in a chroot without /proc mounted, I notice that it does
not display the usual progress info when downloading packages. I only
see one line per packages downloaded, at the end of the download. If I
mount /proc, I get the standard behavor of a constatly updated progress
display. No big deal, but:

brick:/# umount /proc
brick:/# apt-get dselect-upgrade
Reading Package Lists...
Building Dependency Tree...
The following packages will be REMOVED:
  libgdbmg1* nvi slang1*
The following NEW packages will be installed:
  aptitude boa bootpc cvs debconf-i18n devfsd dhcp dnsmasq e2fslibs exim
  fileutils grub hdparm host ipmasq kiss less lftp libacl1 libattr1 libcomerr2
  libdb3-util libgc1 libgcrypt1 libgnutls7 liblocale-gettext-perl liblwres1
  liblzo1 libncursesw5 libopencdk8 libsasl7 libsigc++-1.2-5c102 libss2
  libssl0.9.6 libtasn1-0 libtext-charwidth-perl libtext-wrapi18n-perl
  libtextwrap1 libuuid1 lsof mailx mime-support minicom mutella netdiag
  noflushd rsync screen shellutils ssh strace sudo tcpdump textutils wget
  wireless-tools zlib1g zsh
WARNING: The following essential packages will be removed
This should NOT be done unless you know exactly what you are doing!
  slang1 (due to util-linux)
85 packages upgraded, 58 newly installed, 3 to remove and 0 not upgraded.
Need to get 46.4MB of archives.
After unpacking 42.7MB of additional disk space will be used.
You are about to do something potentially harmful
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
_

I have hit enter at the end, and it apparently hangs here. The first
three times I tried this, it seemed to me that apt had hung, or was not
seeing my newline, and I ctrl-c'd out of it. This time, after waiting 10
minutes, I see:

Get:1 http://http.us.debian.org unstable/main libc6 2.3.2.ds1-10 [4781kB]

So it starts the download but as it is not displaying progress, so can
then sit for an arbitrarily long period of time before displaying any
indication that the user's input was accepted. This is not good UI design
in my opionion. (Neither is "Yes, do as I say", when upgrading a
library, but I digress..)

I wish the progress display could just be fixed to work on systems where
whatever it looks for in /proc is not available.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux dragon 2.4.22 #1 Sun Oct 12 15:11:10 EDT 2003 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.3.2-4    GCC support library
ii  libstdc++5                  1:3.3.2-4    The GNU Standard C++ Library v3

-- no debconf information

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: