[Bug 1258646] Re: tzdata upgrade dies, killing apt w/o fixing the tty, when /etc/localtime is protected

Benjamin Drung 1258646 at bugs.launchpad.net
Sat Mar 25 11:44:22 UTC 2023


Thank you for taking the time to report this bug and helping to make
Ubuntu better.

/etc/localtime is a symlink and therefore setting the immutable flag is
not possible:

```
$ lsattr /etc/localtime 
lsattr: Operation not supported While reading flags on /etc/localtime
```

If you make files in /usr/share/zoneinfo immutable, it will be no
surprise that apt will fail to replace them on a tzdata update.

Can you describe how to replicate your setup step by step?

** Changed in: tzdata (Ubuntu)
       Status: New => Incomplete

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

Title:
  tzdata upgrade dies, killing apt w/o fixing the tty, when
  /etc/localtime is protected

Status in tzdata package in Ubuntu:
  Incomplete

Bug description:
  When /etc/localtime is protected from manipulation, such as with the
  immutable flag — something which is often required when leasing
  virtuals, to keep the vendors’ frameworks from screwing with the
  filesystem — an update to tzdata will crap out, killing dpkg and apt,
  which leaves the tty a mess.

  Instead, should it be impossible to overwrite the existing
  /etc/localtime, the script should continue without error.

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




More information about the foundations-bugs mailing list