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

Bug#176482: apt: bugscript to collect configuration info

Package: apt
Version: 0.5.4
Severity: wishlist

Installing this script as /usr/share/bug/apt/script will enable bug(1) and
reportbug(1) to guide the user through including their apt configuration in
bug reports.

-- System Information:
Debian Release: unstable
Architecture: i386
Kernel: Linux mizar 2.4.19-evms1.2.0-freeswan1.96-usbdnet-apic #1 Sun Oct 6 21:25:26 EDT 2002 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages apt depends on:
ii  libc6                        2.3.1-9     GNU C Library: Shared libraries an
ii  libstdc++2.10-glibc2.2       1:2.95.4-15 The GNU stdc++ library

-- no debconf information

 - mdz
#!/bin/sh -e

# reportbug #169495
if [ -z "$YESNO" ]; then

cat <<EOF
I can automatically include various information about your apt configuration in
your bug report.  This information may help to diagnose your problem.


yesno "May I include your apt configuration (/etc/apt/apt.conf)? " yep

if [ "$REPLY" = "yep" ]; then
  echo -e "\n-- apt-config dump --\n" >&3
  apt-config dump >&3 2>&1

if [ -f /etc/apt/preferences ]; then
  yesno "May I include your apt preferences (/etc/apt/preferences)? " yep

  if [ "$REPLY" = "yep" ]; then
    echo -e "\n-- /etc/apt/preferences --\n" >&3
    cat /etc/apt/preferences >&3

if [ -f /etc/apt/sources.list ]; then
  yesno "May I include your sources.list (/etc/apt/sources.list)? " yep

  if [ "$REPLY" = "yep" ]; then
    echo -e "\n-- /etc/apt/sources.list --\n"
    cat /etc/apt/sources.list >&3

Reply to: