Open dustymabe opened 5 years ago
Hmm, hard to understand what's going on. Can you paste rpm-ostree status -v
too? You can always go with the nuclear reset
option (it looks like you have a ton of inactive layering requests too, so that's probably the easiest anyway):
$ rpm-ostree reset
$ rpm-ostree rebase <stable ref>
$ <whatever other mods you want to do here before rebooting>
Can you paste
rpm-ostree status -v
too?
If you expand the Details
clicky in the description you'll see it.
You can always go with the nuclear reset option
Am hoping to try to avoid that if I can. There's obviously a bug here or some serious user error, i'll keep trying to track it down each time I upgrade my system to see if I get any closer to the problem.
Hmm right, so the issue here is that you've got some packages layered that match the NetworkManager version you're overriding to. But when you do override reset -a
, those overlays are still trying to apply and are thus trying to bring down the rest of the NetworkManager pkgs that are baked in.
The underlying issue here I guess is that override reset
right now operates in offline mode, so it won't try to update your other packages at the same time. I guess we could add a new --online
switch or something? Anyway, what's in the repo might have moved from the base even as per #415, so really I think we want upgrade --override-reset-all
? Though we'll keep having to add switches to the various commands until we have a dnf shell
-like thing to do some conflicting operations in a single transaction (#910 is related here).
For now, you can do something like override reset -a --uninstall NetworkManager-ovs --uninstall NetworkManager- ...
and then rpm-ostree install NetworkManager-{ovs,...}
as a follow-up operation.
sudo rpm-ostree override reset -a --uninstall NetworkManager-iodine-gnome NetworkManager-l2tp-gnome NetworkManager-libreswan-gnome NetworkManager-ovs NetworkManager-sstp-gnome NetworkManager-strongswan-gnome NetworkManager-team
gives me:
error: usage error: Cannot specify PACKAGEs with --all
also tried with:
[dustymabe@hattop ~]$ sudo rpm-ostree override reset NetworkManager-config-connectivity-fedora NetworkManager-bluetooth NetworkManager-adsl NetworkManager-ppp NetworkManager NetworkManager-libnm NetworkManager-wwan NetworkManager-wifi --uninstall=NetworkManager-iodine-gnome --uninstall=NetworkManager-l2tp-gnome --uninstall=NetworkManager-libreswan-gnome --uninstall=NetworkManager-ovs --uninstall=NetworkManager-sstp-gnome --uninstall=NetworkManager-strongswan-gnome --uninstall=NetworkManager-team
Inactive base replacements:
NetworkManager-config-server-1:1.12.6-1.fc29.noarch
NetworkManager-ovs-1:1.12.6-1.fc29.x86_64
NetworkManager-libnm-devel-1:1.12.6-1.fc29.x86_64
NetworkManager-dispatcher-routing-rules-1:1.12.6-1.fc29.noarch
NetworkManager-tui-1:1.12.6-1.fc29.x86_64
NetworkManager-team-1:1.12.6-1.fc29.x86_64
Inactive requests:
gvfs-archive (already provided by gvfs-archive-1.38.1-2.fc29.x86_64)
gvfs-gphoto2 (already provided by gvfs-gphoto2-1.38.1-2.fc29.x86_64)
firefox (already provided by firefox-65.0-4.fc29.x86_64)
libsane-hpaio (already provided by libsane-hpaio-3.18.12-4.fc29.x86_64)
libsecret (already provided by libsecret-0.18.7-1.fc29.x86_64)
xdg-user-dirs-gtk (already provided by xdg-user-dirs-gtk-0.10-14.fc29.x86_64)
gnome-disk-utility (already provided by gnome-disk-utility-3.30.2-1.fc29.x86_64)
bash-completion (already provided by bash-completion-1:2.8-3.fc29.noarch)
gnome-terminal (already provided by gnome-terminal-3.30.2-1.fc29.x86_64)
xorg-x11-server-Xorg (already provided by xorg-x11-server-Xorg-1.20.3-3.fc29.x86_64)
NetworkManager-vpnc-gnome (already provided by NetworkManager-vpnc-gnome-1:1.2.6-1.fc29.x86_64)
xorg-x11-drv-evdev (already provided by xorg-x11-drv-evdev-2.10.6-3.fc29.x86_64)
NetworkManager-bluetooth (already provided by NetworkManager-bluetooth-1:1.12.6-5.fc29.x86_64)
hplip (already provided by hplip-3.18.12-4.fc29.x86_64)
pulseaudio-module-bluetooth (already provided by pulseaudio-module-bluetooth-12.2-1.fc29.x86_64)
NetworkManager-adsl (already provided by NetworkManager-adsl-1:1.12.6-5.fc29.x86_64)
openvpn (already provided by openvpn-2.4.6-3.fc29.x86_64)
f29-backgrounds-base (already provided by f29-backgrounds-base-29.1.3-1.fc29.noarch)
NetworkManager-wifi (already provided by NetworkManager-wifi-1:1.12.6-5.fc29.x86_64)
xorg-x11-drv-synaptics (already provided by xorg-x11-drv-libinput-0.28.2-1.fc29.x86_64)
NetworkManager-ppp (already provided by NetworkManager-ppp-1:1.12.6-5.fc29.x86_64)
NetworkManager-openvpn-gnome (already provided by NetworkManager-openvpn-gnome-1:1.8.10-1.fc29.x86_64)
cups (already provided by cups-1:2.2.8-10.fc29.x86_64)
bluez (already provided by bluez-5.50-3.fc29.x86_64)
patch (already provided by patch-2.7.6-8.fc29.x86_64)
gvfs-afc (already provided by gvfs-afc-1.38.1-2.fc29.x86_64)
gvfs-mtp (already provided by gvfs-mtp-1.38.1-2.fc29.x86_64)
yelp (already provided by yelp-2:3.30.0-1.fc29.x86_64)
pinentry-gtk (already provided by pinentry-gtk-1.1.0-4.fc29.x86_64)
gnome-themes-extra (already provided by gnome-themes-extra-3.28-2.fc29.x86_64)
gvfs-smb (already provided by gvfs-smb-1.38.1-2.fc29.x86_64)
NetworkManager-ssh-gnome (already provided by NetworkManager-ssh-gnome-1.2.7-5.fc29.x86_64)
alsa-plugins-pulseaudio (already provided by alsa-plugins-pulseaudio-1.1.8-1.fc29.x86_64)
NetworkManager-openconnect-gnome (already provided by NetworkManager-openconnect-gnome-1.2.4-10.fc29.x86_64)
NetworkManager-wwan (already provided by NetworkManager-wwan-1:1.12.6-5.fc29.x86_64)
adwaita-gtk2-theme (already provided by adwaita-gtk2-theme-3.28-2.fc29.x86_64)
gvfs-fuse (already provided by gvfs-fuse-1.38.1-2.fc29.x86_64)
pinentry (already provided by pinentry-1.1.0-4.fc29.x86_64)
nm-connection-editor (already provided by nm-connection-editor-1.8.18-3.fc29.x86_64)
pulseaudio (already provided by pulseaudio-12.2-1.fc29.x86_64)
fwupd (already provided by fwupd-1.2.3-1.fc29.x86_64)
NetworkManager-pptp-gnome (already provided by NetworkManager-pptp-gnome-1:1.2.8-1.fc29.x86_64)
alsa-utils (already provided by alsa-utils-1.1.8-2.fc29.x86_64)
gvfs-afp (already provided by gvfs-afp-1.38.1-2.fc29.x86_64)
Checking out tree 991c687... done
⠁ Resolving dependencies...
Forbidden base package replacements:
NetworkManager-adsl 1:1.12.6-5.fc29 -> 1:1.12.6-1.fc29 (@commandline)
NetworkManager-bluetooth 1:1.12.6-5.fc29 -> 1:1.12.6-1.fc29 (@commandline)
NetworkManager-ppp 1:1.12.6-5.fc29 -> 1:1.12.6-1.fc29 (@commandline)
NetworkManager-wifi 1:1.12.6-5.fc29 -> 1:1.12.6-1.fc29 (@commandline)
NetworkManager-wwan 1:1.12.6-5.fc29 -> 1:1.12.6-1.fc29 (@commandline)
NetworkManager-libnm 1:1.12.6-5.fc29 -> 1:1.12.6-1.fc29 (@commandline)
NetworkManager 1:1.12.6-5.fc29 -> 1:1.12.6-1.fc29 (@commandline)
Resolving dependencies... done
error: Some base packages would be replaced
error: usage error: Cannot specify PACKAGEs with --all
Yeah, you have to repeat --uninstall
for each of them.
also tried with
Hmm weird, there might be a bug here. Will try to reproduce it here.
Ahh right OK. So I think the issue here is that some of the other layered packages that aren't being uninstalled are trying to bring back NetworkManager
into the transaction, so you'd have to --uninstall
those as well. rpm -q --whatrequires
can help (or better whatrequires
).
You could also do this in two steps:
$ rpm-ostree reset
$ rpm-ostree install $everything_in_LayeredPackages_and_LocalPackages
Though for the local RPMs, you'll have to fetch the RPMs again. (And an rpm-ostree upgrade
in between for #415).
Host system details
F29 Silverblue
29.20190120.0
Expected vs actual behavior
I would expect to be able to get rid of the base package replacement but can't seem to find a way out.
override reset -a
gives me an error:Steps to reproduce it
I initially got in this state because I had accidentally ended up on the
testing
Silverblue ref and I wanted to get back to the stable ref but I didn't want all packages to "go backwards", so I did an override for the packages I wanted to keep the new versions of. I grabbed all of the packages forNetworkManager-1.12.6-1.fc29
using something likekoji download-build NetworkManager-1.12.6-1.fc29
and then ranrpm-ostree override replace *.rpm
. My system has been running like that for a while and now I decided to try to remove the overrides and I can't.