Verified for plucky, noble, and jammy

lxc launch ubuntu:plucky test-bind-plucky
lxc exec test-bind-plucky bash

apt update
apt upgrade

apt install bind9

echo "invalid data" >> /etc/bind/named.conf

cat <<EOF >/etc/apt/sources.list.d/ubuntu-$(lsb_release -cs)-proposed.list
# Enable Ubuntu proposed archive
deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed restricted 
main multiverse universe
EOF

apt update
apt install bind9/plucky-proposed

...
Errors were encountered while processing:
 bind9
needrestart is being skipped since dpkg has failed
Error: Sub-process /usr/bin/dpkg returned an error code (1)

sed -i '/^invalid[[:space:]]data$/d' /etc/bind/named.conf

apt install bind9/plucky-proposed


lxc launch ubuntu:noble test-bind-noble
lxc exec test-bind-noble bash

apt update
apt upgrade

apt install bind9

echo "invalid data" >> /etc/bind/named.conf

cat <<EOF >/etc/apt/sources.list.d/ubuntu-$(lsb_release -cs)-proposed.list
# Enable Ubuntu proposed archive
deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed restricted 
main multiverse universe
EOF

apt update
apt install bind9/noble-proposed

...
Errors were encountered while processing:
 bind9
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

sed -i '/^invalid[[:space:]]data$/d' /etc/bind/named.conf

apt install bind9/noble-proposed


lxc launch ubuntu:noble test-bind-jammy
lxc exec test-bind-jammy bash

apt update
apt upgrade

apt install bind9

echo "invalid data" >> /etc/bind/named.conf

cat <<EOF >/etc/apt/sources.list.d/ubuntu-$(lsb_release -cs)-proposed.list
# Enable Ubuntu proposed archive
deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed restricted 
main multiverse universe
EOF

apt update
apt upgrade

...
Errors were encountered while processing:
 bind9
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

sed -i '/^invalid[[:space:]]data$/d' /etc/bind/named.conf

apt upgrade

** Tags removed: verification-needed verification-needed-jammy 
verification-needed-noble verification-needed-plucky
** Tags added: verification-done verification-done-jammy 
verification-done-noble verification-done-plucky

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

Title:
  postinst should validate config before restarting bind

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to