I’ve searched bugzilla, the forums, and DuckDuckGo for this error, with no luck. For some time now, I’ve been getting these two errors whenever I run zypper dup.
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 286: /usr/bin/grep: Permission denied
/usr/bin/zgrep is a bash shell script, so here are the two relevant lines:
# awk 'NR==271 || NR==286' /usr/bin/zgrep
r=$?
fi && res=$r
I can post the contents of that script, or you can just check the file /usr/bin/zgrep with less or an editor.
Since zypper won’t run as a user, the answer is yes, I always run zypper as root. It’s a part of the the gzip package, so I checked /var/log/zypp/history and found this:
> sudo grep gzip /var/log/zypp/history
2022-04-22 15:23:31|install|gzip|1.12-1.1|x86_64||openSUSE-20220420-0|2d9870f249193da4ce85b65b2d6e6677d7184f0a9f72b913878b2823bd8a21f9|
2022-05-03 14:40:42|install|gzip|1.12-2.1|x86_64||download.opensuse.org-oss|5ed7ea8f1331bd39b28fa873cbd4a631f236b8dbde62705d2a913c8a6d4f54bd|
2022-05-13 09:39:33|install|gzip|1.12-2.3|x86_64||download.opensuse.org-oss|6e749bcc93f308a64477958803fc10207c60ae37f0de32bf80b313f91c89483b|
2022-05-14 08:47:20|install|gzip|1.12-2.4|x86_64||download.opensuse.org-oss|523ef2e10a2fc0651c9c89da5d05240813aea12caec6a4f01034dbf5286a8069|
2022-06-16 14:12:55|install|gzip|1.12-2.5|x86_64||Sabrent-Samsung||
2022-09-02 11:31:33|install|gzip|1.12-2.7|x86_64||Sabrent-Samsung||
2023-01-08 17:29:55|install|gzip|1.12-3.1|x86_64||Sabrent-Samsung||
2023-03-22 12:40:22|install|gzip|1.12-3.2|x86_64||download.opensuse.org-oss|cab4aa681a566ff28bdf424ee33ee46f8258a46a6510d49e5d66877415c3d05f155e8ca1c57e2884f2cd83834bf59ad534f5b99b9d7961a39f93915081aa3c8d|
2023-06-17 09:02:30|install|gzip|1.12-3.3|x86_64||download.opensuse.org-oss|730c7f6a1ebcac2280ac8fcc3cf932553134477d8980c13827057b4339803588f5d05e5666784dfc912bcb21708c036483bbd970f578d92f4755b52e577cad07|
2023-08-14 11:21:23|install|gzip|1.12-3.5|x86_64||download.opensuse.org-oss|0ca9a9b236801530cb993f7222905271f8c042d696be42809796b5f49e59405fcc555671f338e0e2163f05a1af938c5f5f714d1d4cdd66533299977d84f53eed|
2023-09-03 23:26:32|install|gzip|1.13-1.1|x86_64||download.opensuse.org-oss|91e3c2f8cfa9436b3c1a6ebefab341af3b12bfafa2c859c164473c0632a5e161f4e9f6dc3f8513b478a8d919f3e6ad9691c71305bb61af37576971fefef3d227|
2023-10-10 12:38:52|install|gzip|1.13-1.2|x86_64||download.opensuse.org-oss|830407fb609526606f1f5a5d925b725956ec869ea72cfd3113d59357dff71144e2924e2964e14ae19c4569310fd5fcab1743609e6042270f590c399f801f787d|
2023-10-30 12:41:21|install|gzip|1.13-2.1|x86_64||download.opensuse.org-oss|2284610bc3d9c602a7123aee4dc1cf90c67076f06c6a5d4db97ce763d7e0006c8ed3a6ba3c1078749b2e5f04196cc50a86dde80df27605a49a500532b267a367|
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /bin/zgrep: line 271: /bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /bin/zgrep: line 271: /bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /bin/zgrep: line 271: /bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
You can see that the error started Immediately after the update of gzip to version 1.13-2.1. This is the current version in the repos:
> sudo zypper se -sx gzip
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
--+------+---------+----------+--------+----------------------
i | gzip | package | 1.13-2.1 | x86_64 | Main Repository (OSS)
So it looks like a regression crept into gzip-1.13-2.1. I’ll report that regression in bugzilla, unless someone has another idea.
Great minds think alike! I’m running from Kernel_HEAD, and they started immediatly after the transition from vmlinuz-6.7.0-12.g020caa6-default to vmlinuz-6.8.0-rc1-1.gc2014a1-default. Where does that lead us? Both of the kernels came from Kernel_HEAD repository.
Is that link for Kernel_HEAD issues as well as stock kernels? Also, no kernels before the first 6.8 release candidate, 6.8.0-rc1-1.gc2014a1-default and all kernels after that produce the bug. Is that sufficiently bisected?