Closed abenson closed 2 years ago
Others have reported other and multiple directories being listed.
quinq provided a full log, I unfortunately lost mine.
Problematic upgrades seems to have common symptons: not able to remove some should-be-exist-files in a sub-directory of right or posix.
Confirmed: multiple systems affected with same error (failed to remove obsolete entry).
Mine fails first like this:
And if I run xi -y tzdata
again I get roughly the same logs as everybody upthread.
If I try upgrading tzdata
on a brand new ROOTFS
(void-x86_64-ROOTFS-20210930.tar.xz
, which comes with tzdata-2022a_1
) the upgrade works without fault.
For those failing to upgrade, can you list all find and directory inside /usr/share/zoneinfo
? Those failed to remove items are all directories ?
Mine fails first like this:
(For those reading,
xi
is from thextools
package and essentially anxbps-install -S
shortcut.)❯ xi -y tzdata <...> tzdata update 2022a_1 2022a_2 - <...> tzdata-2022a_2: unpacking ... tzdata-2022a_2: removed obsolete entry: ./usr/share/zoneinfo/right/US ERROR: tzdata-2022a_2: [unpack] failed to extract file `./usr/share/zoneinfo/right': Directory not empty ERROR: tzdata-2022a_2: [unpack] failed to extract files: Directory not empty ERROR: tzdata-2022a_2: [unpack] failed to unpack files from archive: Directory not empty ❯ ls -lR /usr/share/zoneinfo/{right,posix} /usr/share/zoneinfo/posix: total 4 drwxr-xr-x 2 root root 4096 Jul 30 17:08 Canada /usr/share/zoneinfo/posix/Canada: total 4 -rw-r--r-- 1 root root 994 May 3 2018 East-Saskatchewan /usr/share/zoneinfo/right: total 4 drwxr-xr-x 2 root root 4096 Jul 30 17:08 Canada /usr/share/zoneinfo/right/Canada: total 4 -rw-r--r-- 1 root root 1534 May 3 2018 East-Saskatchewan
This timezone is not existed in tzdata. It was removed from tzdata in 2017c. Not sure why it's still there.
And if I run
xi -y tzdata
again I get roughly the same logs as everybody upthread.If I try upgrading
tzdata
on a brand newROOTFS
(void-x86_64-ROOTFS-20210930.tar.xz
, which comes withtzdata-2022a_1
) the upgrade works without fault.
Me too. This is my log:
> xbps-install -u tzdata
...
tzdata-2022a_1: updating to 2022a_2 ...
tzdata-2022a_2: unpacking ...
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/America/North_Dakota': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/America/North_Dakota': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/America/Argentina': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/America/Argentina': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/America/Kentucky': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/America/Kentucky': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/America/Indiana': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/America/Indiana': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Antarctica': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Antarctica': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Australia': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Australia': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Atlantic': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Atlantic': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/America': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Pacific': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/America': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Pacific': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Africa': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Arctic': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Brazil': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Europe': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Indian': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Mexico': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Africa': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Arctic': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Brazil': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Europe': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Indian': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Mexico': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Chile': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Chile': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Asia': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Asia': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/Etc': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/Etc': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/posix/US': No such file or directory
ERROR: tzdata-2022a_2: failed to remove obsolete entry `./usr/share/zoneinfo/right/US': No such file or directory
ERROR: tzdata-2022a_2: [unpack] failed to extract file `./usr/share/zoneinfo/right': Directory not empty
ERROR: tzdata-2022a_2: [unpack] failed to extract files: Directory not empty
ERROR: tzdata-2022a_2: [unpack] failed to unpack files from archive: Directory not empty
Transaction failed! see above for errors.
> ls -lia /usr/share/zoneinfo/
total 428
2887525 drwxr-xr-x 20 root root 4096 Jul 29 17:49 ./
2884504 drwxr-xr-x 232 root root 12288 Jul 31 16:49 ../
2888225 drwxr-xr-x 2 root root 4096 May 3 18:09 Africa/
2887581 drwxr-xr-x 6 root root 4096 May 3 18:09 America/
2887526 drwxr-xr-x 2 root root 4096 May 3 18:09 Antarctica/
2888204 drwxr-xr-x 2 root root 4096 May 3 18:09 Arctic/
2888124 drwxr-xr-x 2 root root 4096 May 3 18:09 Asia/
2888206 drwxr-xr-x 2 root root 4096 May 3 18:09 Atlantic/
2888244 drwxr-xr-x 2 root root 4096 May 3 18:09 Australia/
2888123 drwxr-xr-x 2 root root 4096 Jul 7 2019 Brazil/
2888296 -rw-r--r-- 1 root root 2094 May 3 11:24 CET
2888221 -rw-r--r-- 1 root root 2310 May 3 11:24 CST6CDT
2888219 drwxr-xr-x 2 root root 4096 Oct 4 2021 Canada/
2888747 drwxr-xr-x 2 root root 4096 May 3 18:09 Chile/
2888566 -rw-r--r-- 2 root root 2416 May 3 11:24 Cuba
2887538 -rw-r--r-- 1 root root 1908 May 3 11:24 EET
2887539 -rw-r--r-- 1 root root 114 May 3 11:24 EST
2888202 -rw-r--r-- 1 root root 2310 May 3 11:24 EST5EDT
2888318 -rw-r--r-- 2 root root 1955 May 3 11:24 Egypt
2888493 -rw-r--r-- 2 root root 3492 May 3 11:24 Eire
2888258 drwxr-xr-x 2 root root 4096 May 3 18:09 Etc/
2888299 drwxr-xr-x 2 root root 4096 May 3 18:09 Europe/
2888638 -rw-r--r-- 1 root root 116 May 3 11:24 Factory
2898660 -rw-r--r-- 7 root root 3648 May 3 11:24 GB
2898660 -rw-r--r-- 7 root root 3648 May 3 11:24 GB-Eire
2888656 -rw-r--r-- 10 root root 114 May 3 11:24 GMT
2888656 -rw-r--r-- 10 root root 114 May 3 11:24 GMT+0
2888656 -rw-r--r-- 10 root root 114 May 3 11:24 GMT-0
2888656 -rw-r--r-- 10 root root 114 May 3 11:24 GMT0
2888656 -rw-r--r-- 10 root root 114 May 3 11:24 Greenwich
2888298 -rw-r--r-- 1 root root 115 May 3 11:24 HST
2888720 -rw-r--r-- 2 root root 1203 May 3 11:24 Hongkong
2888624 -rw-r--r-- 2 root root 1162 May 3 11:24 Iceland
2888286 drwxr-xr-x 2 root root 4096 May 3 18:09 Indian/
2888599 -rw-r--r-- 2 root root 2582 May 3 11:24 Iran
2898659 -rw-r--r-- 3 root root 2388 May 3 11:24 Israel
2888488 -rw-r--r-- 2 root root 482 May 3 11:24 Jamaica
2887891 -rw-r--r-- 2 root root 309 May 3 11:24 Japan
2888408 -rw-r--r-- 2 root root 316 May 3 11:24 Kwajalein
2888586 -rw-r--r-- 2 root root 625 May 3 11:24 Libya
2887540 -rw-r--r-- 1 root root 2094 May 3 11:24 MET
2888224 -rw-r--r-- 1 root root 114 May 3 11:24 MST
2888243 -rw-r--r-- 1 root root 2310 May 3 11:24 MST7MDT
2887715 drwxr-xr-x 2 root root 4096 Jul 7 2019 Mexico/
2888507 -rw-r--r-- 4 root root 2437 May 3 11:24 NZ
2888503 -rw-r--r-- 2 root root 2068 May 3 11:24 NZ-CHAT
2888421 -rw-r--r-- 4 root root 2444 May 3 11:24 Navajo
2888510 -rw-r--r-- 5 root root 561 May 3 11:24 PRC
2887543 -rw-r--r-- 1 root root 2310 May 3 11:24 PST8PDT
2887545 drwxr-xr-x 2 root root 4096 May 3 18:09 Pacific/
2898654 -rw-r--r-- 2 root root 2654 May 3 11:24 Poland
2898653 -rw-r--r-- 2 root root 3497 May 3 11:24 Portugal
2898130 -rw-r--r-- 2 root root 761 May 3 11:24 ROC
2888518 -rw-r--r-- 2 root root 617 May 3 11:24 ROK
2888735 -rw-r--r-- 2 root root 383 May 3 11:24 Singapore
2888716 -rw-r--r-- 3 root root 1947 May 3 11:24 Turkey
2888485 -rw-r--r-- 8 root root 114 May 3 11:24 UCT
2888295 drwxr-xr-x 2 root root 4096 May 3 18:09 US/
2888485 -rw-r--r-- 8 root root 114 May 3 11:24 UTC
2888485 -rw-r--r-- 8 root root 114 May 3 11:24 Universal
2888312 -rw-r--r-- 2 root root 1535 May 3 11:24 W-SU
2888223 -rw-r--r-- 1 root root 1905 May 3 11:24 WET
2888485 -rw-r--r-- 8 root root 114 May 3 11:24 Zulu
2888285 -r--r--r-- 1 root root 4463 May 3 11:24 iso3166.tab
2888340 drwxr-xr-x 3 root root 4096 Jul 29 17:49 posix/
2887716 drwxr-xr-x 3 root root 4096 Jul 29 17:49 right/
2888362 -rw-r--r-- 1 root root 112785 Jul 29 08:09 tzdata.zi
2887740 -rw-r--r-- 1 root root 19419 Jul 29 08:09 zone.tab
2887829 -rw-r--r-- 1 root root 17593 Jul 29 08:09 zone1970.tab
Please try to build this package and test: https://github.com/void-linux/void-packages/pull/38390
Please also check to xbps-pkgdb -a
after upgrading, too.
xbps-pkgdb -a
No output. Seems like a success.
@rafeyu Can you help?
dataCobra wants to close #40357 which is basically a duplicate of this #38363 issue. The issue remains and could be as simple as the East-Saskatchewan files that should have been removed by a previous update:
in zoneinfo/right/Canada/: -rw-r--r-- 1 root root 1534 May 3 2018 East-Saskatchewan and in zoneinfo/posix/Canada/: -rw-r--r-- 1 root root 994 May 3 2018 East-Saskatchewan
The tzdata blocked all updates because of the Canada directory(s).
[*] Collecting package files tzdata-2022f_2: collecting files... tzdata-2021c_1: collecting files... ERROR: tzdata-2022f_2: directory `./usr/share/zoneinfo/posix/Canada' can not be deleted. Transaction failed! see above for errors. -bash-5.1#
EDIT: Now I see this issue is closed so this is a spurious comment.
Is this a new report?
Yes
System Info
Void 5.18.11_1 x86_64 GenuineIntel notuptodate hold rrFFFFFFFFFFF
Package(s) Affected
tzdata-2022a_2
Does a report exist for this bug with the project's home (upstream) and/or another distro?
No response
Expected behaviour
Package updates.
Actual behaviour
Steps to reproduce
Unfortunately it seems inconsistent. I've only been able recreate it once.