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

Bug#696332: lsb-release: release/codename depend on a successful apt-get



Subject: lsb-release: release/codename depend on a successful apt-get update
Package: lsb-release
Version: 4.1+Debian8
Severity: normal


If an apt-get update fails (i.e. no internet connection), the lsb
codename will change to "n/a", which shouldn't happen. Release changes
to "testing/unstable".



root@wheezy:~# lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux testing (wheezy)
Release:    testing
Codename:    wheezy

root@wheezy:~# facter lsbdistcodename
wheezy

root@wheezy:~# iptables -A OUTPUT -p tcp --dport 80 -j REJECT

root@wheezy:~# apt-get update
Err http://cdn.debian.net wheezy InRelease


Err http://cdn.debian.net wheezy Release.gpg

  Unable to connect to cdn.debian.net:http: [IP: 195.71.68.86 80]
Err http://security.debian.org wheezy/updates InRelease

Err http://security.debian.org wheezy/updates Release.gpg
  Unable to connect to security.debian.org:http: [IP: 195.20.242.89 80]
Reading package lists... Done
W: Failed to fetch http://cdn.debian.net/debian/dists/wheezy/InRelease

W: Failed to fetch
http://security.debian.org/dists/wheezy/updates/InRelease

W: Failed to fetch http://cdn.debian.net/debian/dists/wheezy/Release.gpg
 Unable to connect to cdn.debian.net:http: [IP: 195.71.68.86 80]

W: Failed to fetch
http://security.debian.org/dists/wheezy/updates/Release.gpg  Unable to
connect to security.debian.org:http: [IP: 195.20.242.89 80]

W: Some index files failed to download. They have been ignored, or old
ones used instead.
root@wheezy:~# lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux testing/unstable
Release:    testing/unstable
Codename:    n/a

root@wheezy:~# facter lsbdistcodename
n/a

root@wheezy:~# iptables -F OUTPUT

root@wheezy:~# apt-get update
Get:1 http://security.debian.org wheezy/updates InRelease [102 kB]
Get:2 http://cdn.debian.net wheezy InRelease [216 kB]
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://security.debian.org wheezy/updates/contrib amd64 Packages
Hit http://security.debian.org wheezy/updates/non-free amd64 Packages
Hit http://cdn.debian.net wheezy/main amd64 Packages
Hit http://cdn.debian.net wheezy/contrib amd64 Packages
Hit http://cdn.debian.net wheezy/non-free amd64 Packages
Hit http://cdn.debian.net wheezy/contrib Translation-en
Hit http://cdn.debian.net wheezy/main Translation-en
Hit http://cdn.debian.net wheezy/non-free Translation-en
Ign http://security.debian.org wheezy/updates/contrib Translation-en_US
Ign http://security.debian.org wheezy/updates/contrib Translation-en
Ign http://security.debian.org wheezy/updates/main Translation-en_US
Ign http://security.debian.org wheezy/updates/main Translation-en
Ign http://security.debian.org wheezy/updates/non-free Translation-en_US
Ign http://security.debian.org wheezy/updates/non-free Translation-en
Fetched 317 kB in 1s (163 kB/s)
Reading package lists... Done

root@wheezy:~# lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux testing (wheezy)
Release:    testing
Codename:    wheezy

root@wheezy:~# facter lsbdistcodename
wheezy





-- Package-specific info:
lsb_release output
-*- -*- -*- -*- -*-
Distributor ID:	Debian
Description:	Debian GNU/Linux testing (wheezy)
Release:	testing
Codename:	wheezy
-*- -*- -*- -*- -*-
    Apt policy
-*- -*- -*- -*- -*-
Package files:
 100 /var/lib/dpkg/status
     release a=now
 990 http://security.debian.org/ wheezy/updates/non-free amd64 Packages
     release o=Debian,a=testing,n=wheezy,l=Debian-Security,c=non-free
     origin security.debian.org
 990 http://security.debian.org/ wheezy/updates/contrib amd64 Packages
     release o=Debian,a=testing,n=wheezy,l=Debian-Security,c=contrib
     origin security.debian.org
 990 http://security.debian.org/ wheezy/updates/main amd64 Packages
     release o=Debian,a=testing,n=wheezy,l=Debian-Security,c=main
     origin security.debian.org
 500 http://cdn.debian.net/debian/ wheezy/non-free Translation-en
 500 http://cdn.debian.net/debian/ wheezy/main Translation-en
 500 http://cdn.debian.net/debian/ wheezy/contrib Translation-en
 990 http://cdn.debian.net/debian/ wheezy/non-free amd64 Packages
     release o=Debian,a=testing,n=wheezy,l=Debian,c=non-free
     origin cdn.debian.net
 990 http://cdn.debian.net/debian/ wheezy/contrib amd64 Packages
     release o=Debian,a=testing,n=wheezy,l=Debian,c=contrib
     origin cdn.debian.net
 990 http://cdn.debian.net/debian/ wheezy/main amd64 Packages
     release o=Debian,a=testing,n=wheezy,l=Debian,c=main
     origin cdn.debian.net
Pinned packages:
-*- -*- -*- -*- -*-
   sources.list
-*- -*- -*- -*- -*-
deb http://cdn.debian.net/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
-*- -*- -*- -*- -*-
 /etc/lsb_release
-*- -*- -*- -*- -*-
- none

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lsb-release depends on:
ii  python  2.7.3~rc2-1

Versions of packages lsb-release recommends:
ii  apt  0.9.7.6

Versions of packages lsb-release suggests:
pn  lsb  <none>

-- no debconf information


Reply to: