Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
openwrt-bot opened this issue May 20, 2021 · 14 comments
Closed
Labels
flyspray release/19.07

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented May 20, 2021

brianjmurrell:

# opkg upgrade openwrt-keyring
Upgrading openwrt-keyring on root from 2019-07-25-8080ef34-1 to 2021-02-20-49283916-2...
Collected errors:

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 20, 2021

gyogyi:

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

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 21, 2021

pabloalcantara:

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

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 21, 2021

brianjmurrell:

@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.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 22, 2021

holishing:

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

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 22, 2021

bjonglez:

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?

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 22, 2021

brianjmurrell:

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.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 23, 2021

yu210148:

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.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 26, 2021

gyogyi:

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.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 31, 2021

rathann:

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

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jul 2, 2021

ddnexus:

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?

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jul 14, 2021

elaugier:

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

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jul 22, 2021

gcb:

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

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Nov 14, 2021

nereocystis:

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

@aparcar aparcar added the release/19.07 label Feb 22, 2022
@ynezz
Copy link
Member

@ynezz ynezz commented May 24, 2022

OpenWrt 19.07 release is EOL, try to reproduce the issue with latest supported release and feel free to ask for issue reopening if the problem is still present, thanks.

@ynezz ynezz closed this as completed May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray release/19.07
Projects
None yet
Development

No branches or pull requests

3 participants