OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Very Low
  • Reported Version openwrt-19.07
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Brian J. Murrell - 20.05.2021

FS#3819 - openwrt-keyring 2021-02-20-49283916-2 update conflicts with base-files

# opkg upgrade openwrt-keyring
Upgrading openwrt-keyring on root from 2019-07-25-8080ef34-1 to 2021-02-20-49283916-2...
Collected errors:
 * check_data_file_clashes: Package openwrt-keyring wants to install file /etc/opkg/keys/f94b9dd6febac963
	But that file is already provided by package  * base-files
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/base/openwrt-keyring_2021-02-20-49283916-2_mips_24kc.ipk
Jozef commented on 20.05.2021 18:29

Same issue.
openwrt-19.07.4

openwrt-keyring - 2019-07-25-8080ef34-1 - 2021-02-20-49283916-2
Upgrading openwrt-keyring on root from 2019-07-25-8080ef34-1 to 2021-02-20-49283916-2...
Downloading http://downloads.openwrt.org/releases/19.07.4/packages/mipsel_24kc/base/openwrt-keyring_2021-02-20-49283916-2_mipsel_24kc.ipk Collected errors:
* check_data_file_clashes: Package openwrt-keyring wants to install file /etc/opkg/keys/f94b9dd6febac963

But that file is already provided by package  * base-files

xargs: opkg: exited with status 255; aborting

Pablo Alcantara commented on 21.05.2021 16:43

I fixed forcing the update
opkg install openwrt-keyring –force-overwrite

Brian J. Murrell commented on 21.05.2021 16:58

@Pablo: You worked-around the issue, you didn't fix it. :-) The issue still exists for folks who don't want to force overwrites and break installed package integrity.

holishing commented on 22.05.2021 15:55

Version 19.07.7 also has the same problem
Agreed that –force-overwrite is not a good idea

Project Manager
Baptiste Jonglez commented on 22.05.2021 17:10

This looks like a bug / omission, but what is the use-case here? Are you really upgrading all packages on a production router on a regular basis?

Brian J. Murrell commented on 22.05.2021 21:40
Are you really upgrading all packages on a production router on a regular basis?

Yes. Why wouldn't I? Building a new firmware for each and every router multiplied by each and every package update and then taking the time to and outage to reboot into the new firmware on all of those routers is simply not practical.

Packages should be upgradable, and with few exceptions, without a reboot even. This is not new technology.

Kevin Lucas commented on 23.05.2021 12:17

Hi All,

I've run into this too on version 19.07.6. Other than –force-overwrite which some above have suggested is not a great thing to do what are some other options?

I'm sorry I have nothing more useful to add.

Jozef commented on 26.05.2021 10:37

My workaround.

Rename or delete /etc/opkg/keys/f94b9dd6febac963

Download the openwrt-keyring package.
In my case: wget http://downloads.openwrt.org/releases/19.07.4/packages/mipsel_24kc/base/openwrt-keyring_2021-02-20-49283916-2_mipsel_24kc.ipk

Install the package.
opkg install openwrt-keyring_2021-02-20-49283916-2_mipsel_24kc.ipk

Check the updates.
opkg update
opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade

Good for now.

Dominik Mierzejewski commented on 31.05.2021 07:10

Confirmed on 19.07.7 with:
base-files - 204.2-r11306-c4a6851c72
and
openwrt-keyring 2021-02-20-49283916-2

Domizio Demichelis commented on 02.07.2021 11:49

Same on 19.07.7 here too.

And the workaround does not work.

"Segmentation fault" if you do it from the terminal or:

Collected errors:
 * opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_base.
 * opkg_install_cmd: Cannot install package openwrt-keyring.

if you try to install it from LuCI after renaming the key as indicated.

What are the drawbacks if we don't update the package?

Eric Laugier commented on 14.07.2021 06:48

Hello

Same issue:

Collected errors:
 * check_data_file_clashes: Package openwrt-keyring wants to install file /etc/opkg/keys/f94b9dd6febac963
	But that file is already provided by package  * base-files
 * opkg_install_cmd: Cannot install package openwrt-keyring.

on OpenWrt 19.07.4 r11208-ce6496d796 / LuCI openwrt-19.07 branch git-21.189.23240-7b931da
model : Linksys WRT3200ACM

Gabriel commented on 22.07.2021 11:27
root@OpenWrt:~# diff keyring-f94b9dd6febac963 base-f94b9dd6febac963
1,2c1,2
< untrusted comment: Public usign key for 19.07 release builds
< RWT5S53W/rrJY9BiIod3JF04AZ/eU1xDpVOb+rjZzAQBEcoETGx8BXEK
---
> OpenWrt 19.07 release signature
> RWT5S53W/rrJY9BiIod3JF04AZ/eU1xDpVOb+rjZzAQBEcoETGx8BXEK
\ No newline at end of file
Kevin Dalley commented on 14.11.2021 21:19

I suggest a small variation on the work around to make sure that correct version of package is downloaded

mv /etc/opkg/keys/f94b9dd6febac963 /etc/opkg/keys/f94b9dd6febac963-bad
opkg download openwrt-keyring
opkg install opkg install opkg install openwrt-keyring_2021-02-20-49283916*.ipk

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing