coreos / rpm-ostree

⚛📦 Hybrid image/package system with atomic upgrades and package layering
https://coreos.github.io/rpm-ostree
Other
861 stars 195 forks source link

Can not remove any layered package #4171

Open Akergez opened 1 year ago

Akergez commented 1 year ago

Host system details

Provide the output of `rpm-ostree status`.
State: idle
BootedDeployment:
● fedora:fedora/36/x86_64/silverblue
                  Version: 36.20221127.0 (2022-11-27T00:57:32Z)
               BaseCommit: 794e595312f118772f253592904aef31513628016222b7a96c0835d045ad9a50
             GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
          LayeredPackages: 'g++' akmod-nvidia ark cabextract cups-devel docker dolphin dotnet-sdk-3.1 dotnet-sdk-6.0 edk2-ovmf filelight gamescope gdb gnome-boxes gnome-tweak-tool google-chrome-stable goverlay
                           icoutils java-17-openjdk.x86_64 kate kde-cli-tools kde-partitionmanager kde-style-breeze kernel-devel kf5-kquickcharts kvantum libgda libgda-sqlite lldb mono-complete mono-devel
                           msbuild neofetch neovim nodejs openssl plasma-systemmonitor qqc2-desktop-style qt5-qtstyleplugins qt5ct referenceassemblies-pcl rpm-build rpmdevtools samba skanlite steam tlp tmux
                           touchegg virt-manager wireshark xorg-x11-drv-nvidia xprop xsp zsh zstd
            LocalPackages: lib64jpeg8-1:2.1.3-1.x86_64 pantum-m6xxx-cups-1.4.0-2.fc35.x86_64 pantum-m6xxx-sane-1.4.0-2.fc35.x86_64 veracrypt-1.25.9-1.x86_64 VirtualBox-6.1-6.1.36_152435_fedora36-1.x86_64
                   Pinned: yes

Expected vs actual behavior

# rpm-ostree remove zsh
error: Checkout zlib-1.2.12-5.fc37.i686: Hardlinking 98/82a818189d1560e1f149786f022cbfab8310b1ef3dd830ffcea51fc8d5eda9.file to ChangeLog: File exists
Akergez commented 1 year ago

Also presents on Fedora 37

rpm-ostree remove zsh
Inactive requests:
  gnome-shell (already provided by gnome-shell-43.0-3.fc37.x86_64)
  distribution-gpg-keys (already provided by distribution-gpg-keys-1.77-1.fc37.noarch)
Checking out tree 90af8a2... done
Resolving dependencies... done
Relabeling... done
Checking out packages... done
error: Checkout expat-2.5.0-1.fc36.i686: Hardlinking e7/4b2331ec26a8e627b0390769f0bf05b3bd45c42928c2283ad05759da4e0fb5.file to Changes: File exists
cgwalters commented 1 year ago

This means that one of the files conflicts; unfortunately debugging this is a big of a pain right now. You can try to figure out which one by checking for multiple packages containing the same Changes file for example.

Akergez commented 1 year ago

This means that one of the files conflicts; unfortunately debugging this is a big of a pain right now. You can try to figure out which one by checking for multiple packages containing the same Changes file for example.

I made rollback to old deployment (f35) and update it to f37 with layering my packages. It solved problem. May be it was bug only in my installation because of a lot of rebases and hotfixes