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

Bug#52957: apt: putting default options into apt.conf changes apt's behavior



Package: apt
Version: 0.3.15
Severity: normal

Hi,

With a default apt.conf file (installed by apt/debconf), after I
installed a package that had to be downloaded, apt asks if I want
to delete the downloaded .deb file.

If I add some default options to apt.conf (according to
examples/apt.conf.gz), then apt does not ask if I want to delete
the downloaded .deb files.

Here is the case that asks to delete the downloaded files, with
the corresponding apt.conf file, then the typescript,

    
    // Pre-configure all packages before they are installed.
    // (Automatically added by debconf.)
    DPkg::Pre-Install-Pkgs {"dpkg-preconfig --apt";};

    5 jsroot ~ # dselect
    Reading Package Lists... Done
    Building Dependency Tree... Done
    The following NEW packages will be installed:
      glimpse members 
    0 packages upgraded, 2 newly installed, 0 to remove and 0 not
    upgraded.
    Need to get 539kB of archives. After unpacking 1415kB will be
    used.
    Do you want to continue? [Y/n] 
    Get:1 http://ftp-mirror.internap.com potato/main members
    19990831-1 [7636B]
    Get:2 http://ftp-mirror.internap.com potato/non-free glimpse 4.1-2
    [531kB]     
    Fetched 539kB in 7m55s (1134B/s)                                               
    (Reading database ... 32826 files and directories currently
    installed.)
    Unpacking members (from .../members_19990831-1_i386.deb) ...
    Unpacking glimpse (from .../glimpse_4.1-2_i386.deb) ...
    Setting up members (19990831-1) ...
    Setting up glimpse (4.1-2) ...
    Do you want to erase the downloaded .deb files (Y/n)n
                                        ^^^^^^^^^^^^^^^^^
Likewise for the second case,

    // /etc/apt/apt.conf - apt configuration file directives.
    //
    // See /usr/share/doc/apt/examples/apt.conf.gz for details.
    
    // Things that effect the APT dselect method
    DSelect 
    {
       Clean "auto";   // always|auto|prompt|never
       Options "-f";
       UpdateOptions "";
       PromptAfterUpdate "no";
    }
    
    // Pre-configure all packages before they are installed.
    // (Automatically added by debconf.)
    DPkg::Pre-Install-Pkgs {"dpkg-preconfig --apt";};

    39 jsroot ~ # dselect
    Reading Package Lists... Done
    Building Dependency Tree... Done
    The following NEW packages will be installed:
      members 
    0 packages upgraded, 1 newly installed, 0 to remove and 0 not
    upgraded.
    Need to get 0B/7636B of archives. After unpacking 23.6kB will be
    used.
    Do you want to continue? [Y/n] 
    (Reading database ... 32851 files and directories currently
    installed.)
    Unpacking members (from .../members_19990831-1_i386.deb) ...
    Setting up members (19990831-1) ...
    Reading Package Lists... Done
    Building Dependency Tree... Done
    Press enter to continue.
    
    Reading Package Lists... Done
    Building Dependency Tree... Done
    The following NEW packages will be installed:
      cook cook-doc 
    0 packages upgraded, 2 newly installed, 0 to remove and 0 not
    upgraded.
    Need to get 911kB of archives. After unpacking 1352kB will be
    used.
    Do you want to continue? [Y/n] 
    Get:1 http://ftp-mirror.internap.com potato/main cook-doc 2.10-1
    [535kB]
    Get:2 http://ftp-mirror.internap.com potato/main cook 2.10-1
    [375kB]           
    Fetched 911kB in 15m13s (997B/s)                                               
    (Reading database ... 32857 files and directories currently
    installed.)
    Unpacking cook-doc (from .../cook-doc_2.10-1_all.deb) ...
    Unpacking cook (from .../archives/cook_2.10-1_i386.deb) ...
    Setting up cook-doc (2.10-1) ...
    Setting up cook (2.10-1) ...
    Reading Package Lists... Done
    Building Dependency Tree... Done
    Press enter to continue.


Thanks,
-- 
Jeff Sheinberg  <jeffsh@erols.com>


-- System Information
Debian Release: potato
Kernel Version: Linux eden-hda7.local 2.2.13 #3 Tue Nov 23 19:16:01 EST 1999 i586 unknown

Versions of the packages apt depends on:
ii  libc6           2.1.2-10       GNU C Library: Shared libraries and timezone
ii  libstdc++2.10   2.95.2-3       The GNU stdc++ library



Reply to: