[Bug 1261880] [NEW] apt-get flushes read buffer

Cliff Carson 1261880 at bugs.launchpad.net
Tue Dec 17 19:58:16 UTC 2013


Public bug reported:

Have a script that installs all the additional programs (chromium-
browser, glabel, gimp,,,, etc) after installing the base 14.04 system.
Have used this same script for many relase of Ubuntu.  When I run it now
it appears that the first call to apt-get will purge the read buffer on
the script.  Example of the script

while read cmdtodo prodtoinst
  do
    apt-get -y $cmdtodo $prodtoinst
done < $infile

The infile contains a list of commands and products

remove rythmbox
install glabel
install gimp
install gnucash

What I see at the terminal after calling the user install script is the
output of apt-get remove rythmbox and then the rest of the lines in the
infile (the "install glabel"  "install gimp" etc get outputed to the
terminal before the completion of the apt-get remove command.  The
installs stop.

If the user command is immediately re-run the first product fails
because it is either installed or uninstalled and the next product is
picked up and run.  Again during the run the infile buffer is flushed to
the terminal and the installs stop.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: apt 0.9.14.1ubuntu1
ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
Uname: Linux 3.12.0-7-generic x86_64
ApportVersion: 2.12.7-0ubuntu2
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Dec 17 14:36:52 2013
InstallationDate: Installed on 2013-12-17 (0 days ago)
InstallationMedia: Ubuntu-GNOME 14.04 "Trusty Tahr" - Alpha amd64 (20131217)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1261880

Title:
  apt-get flushes read buffer

Status in “apt” package in Ubuntu:
  New

Bug description:
  Have a script that installs all the additional programs (chromium-
  browser, glabel, gimp,,,, etc) after installing the base 14.04 system.
  Have used this same script for many relase of Ubuntu.  When I run it
  now it appears that the first call to apt-get will purge the read
  buffer on the script.  Example of the script

  while read cmdtodo prodtoinst
    do
      apt-get -y $cmdtodo $prodtoinst
  done < $infile

  The infile contains a list of commands and products

  remove rythmbox
  install glabel
  install gimp
  install gnucash

  What I see at the terminal after calling the user install script is
  the output of apt-get remove rythmbox and then the rest of the lines
  in the infile (the "install glabel"  "install gimp" etc get outputed
  to the terminal before the completion of the apt-get remove command.
  The installs stop.

  If the user command is immediately re-run the first product fails
  because it is either installed or uninstalled and the next product is
  picked up and run.  Again during the run the infile buffer is flushed
  to the terminal and the installs stop.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: apt 0.9.14.1ubuntu1
  ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
  Uname: Linux 3.12.0-7-generic x86_64
  ApportVersion: 2.12.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Tue Dec 17 14:36:52 2013
  InstallationDate: Installed on 2013-12-17 (0 days ago)
  InstallationMedia: Ubuntu-GNOME 14.04 "Trusty Tahr" - Alpha amd64 (20131217)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: apt
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1261880/+subscriptions



More information about the foundations-bugs mailing list