Whenever I try to dnf upgrade on my Vagrant 25 libvirt guest, dnf fails seemingly due to some weird state on the image:
dnf upgrade
$ sudo dnf upgrade dnf -y Last metadata expiration check: 0:27:40 ago on Wed May 24 17:28:05 2017. Dependencies resolved. ============================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================= Upgrading: dnf noarch 1.1.10-6.fc25 updates 276 k Transaction Summary ============================================================================================================================================================================================================================================= Upgrade 1 Package Total download size: 276 k Downloading Packages: [SKIPPED] dnf-1.1.10-3.fc25_1.1.10-6.fc25.noarch.drpm: Already downloaded /usr/share/locale/bg/LC_MESSAGES/dnf.mo: No such file or directory cannot reconstruct rpm from disk files dnf-1.1.10-6.fc25.noarch: Delta RPM rebuild failed dnf-1.1.10-6.fc25.noarch.rpm 227 kB/s | 276 kB 00:01 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 155 kB/s | 276 kB 00:01 Delta RPMs reduced 0.3 MB of updates to 0.4 MB (-36.1% saved) Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Upgrading : dnf-1.1.10-6.fc25.noarch 1/2 Error unpacking rpm package dnf-1.1.10-6.fc25.noarch Error unpacking rpm package dnf-1.1.10-6.fc25.noarch error: unpacking of archive failed on file /var/cache/dnf: cpio: chown dnf-1.1.10-6.fc25.noarch was supposed to be installed but is not! Verifying : dnf-1.1.10-6.fc25.noarch 1/2 dnf-1.1.10-3.fc25.noarch was supposed to be removed but is not! Verifying : dnf-1.1.10-3.fc25.noarch 2/2 Failed: dnf.noarch 1.1.10-6.fc25 Complete!
seems to work for me for the box i am using:
+[dustymabe@media f25 (master *%=)]$ md5sum /guests/vagrant.d/boxes/fedora-VAGRANTSLASH-25-cloud-base/20161122/libvirt/box.img 9fa905c7f2cb33e8c05ed5cf20cf115c /guests/vagrant.d/boxes/fedora-VAGRANTSLASH-25-cloud-base/20161122/libvirt/box.img
[vagrant@f25vanilla ~]$ sudo dnf update dnf -y Last metadata expiration check: 0:01:55 ago on Wed May 24 19:27:37 2017. Dependencies resolved. ===================================================================================================================== Package Arch Version Repository Size ===================================================================================================================== Upgrading: dnf noarch 1.1.10-6.fc25 updates 276 k dnf-conf noarch 1.1.10-6.fc25 updates 96 k dnf-yum noarch 1.1.10-6.fc25 updates 79 k hawkey x86_64 0.6.4-3.fc25 updates 64 k python3-dnf noarch 1.1.10-6.fc25 updates 452 k python3-hawkey x86_64 0.6.4-3.fc25 updates 46 k Transaction Summary ===================================================================================================================== Upgrade 6 Packages Total download size: 1.0 M Downloading Packages: (1/6): python3-hawkey-0.6.3-6.fc25_0.6.4-3.fc25.x86_64.drpm 67 kB/s | 18 kB 00:00 (2/6): dnf-1.1.10-3.fc25_1.1.10-6.fc25.noarch.drpm 326 kB/s | 101 kB 00:00 (3/6): hawkey-0.6.3-6.fc25_0.6.4-3.fc25.x86_64.drpm 438 kB/s | 20 kB 00:00 /usr/share/locale/bg/LC_MESSAGES/dnf.mo: No such file or directory ] 297 kB/s | 180 kB 00:00 ETA cannot reconstruct rpm from disk files (4/6): python3-dnf-1.1.10-3.fc25_1.1.10-6.fc25.noarch.drpm 311 kB/s | 111 kB 00:00 [DRPM] python3-hawkey-0.6.3-6.fc25_0.6.4-3.fc25.x86_64.drpm: done (5/6): dnf-conf-1.1.10-6.fc25.noarch.rpm 1.2 MB/s | 96 kB 00:00 (6/6): dnf-yum-1.1.10-6.fc25.noarch.rpm 1.1 MB/s | 79 kB 00:00 [DRPM] hawkey-0.6.3-6.fc25_0.6.4-3.fc25.x86_64.drpm: done [DRPM] python3-dnf-1.1.10-3.fc25_1.1.10-6.fc25.noarch.drpm: done dnf-1.1.10-6.fc25.noarch: Delta RPM rebuild failed dnf-1.1.10-6.fc25.noarch.rpm 1.1 MB/s | 276 kB 00:00 --------------------------------------------------------------------------------------------------------------------- Total 607 kB/s | 700 kB 00:01 Delta RPMs reduced 1.0 MB of updates to 0.7 MB (30.1% saved) Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Upgrading : hawkey-0.6.4-3.fc25.x86_64 1/12 Upgrading : python3-hawkey-0.6.4-3.fc25.x86_64 2/12 Upgrading : dnf-conf-1.1.10-6.fc25.noarch 3/12 Upgrading : python3-dnf-1.1.10-6.fc25.noarch 4/12 Upgrading : dnf-1.1.10-6.fc25.noarch 5/12 Upgrading : dnf-yum-1.1.10-6.fc25.noarch 6/12 Cleanup : dnf-yum-1.1.10-3.fc25.noarch 7/12 Cleanup : dnf-1.1.10-3.fc25.noarch 8/12 warning: file /usr/share/locale/zh_TW/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/zh_CN/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/ur/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/uk/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/tr/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/th/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/sv/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/sr@latin/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/sr/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/sq/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/sk/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/ru/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/pt_BR/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/pt/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/pl/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/pa/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/nl/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/nb/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/ms/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/mr/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/ml/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/lt/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/ko/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/kk/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/ka/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/ja/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/it/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/id/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/hu/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/hr/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/hi/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/he/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/gu/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/fr/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/fi/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/eu/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/es/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/el/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/de/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/da/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/cs/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/ca/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/bn_IN/LC_MESSAGES/dnf.mo: remove failed: No such file or directory warning: file /usr/share/locale/bg/LC_MESSAGES/dnf.mo: remove failed: No such file or directory Cleanup : python3-dnf-1.1.10-3.fc25.noarch 9/12 Cleanup : python3-hawkey-0.6.3-6.fc25.x86_64 10/12 Cleanup : dnf-conf-1.1.10-3.fc25.noarch 11/12 Cleanup : hawkey-0.6.3-6.fc25.x86_64 12/12 Verifying : dnf-1.1.10-6.fc25.noarch 1/12 Verifying : python3-dnf-1.1.10-6.fc25.noarch 2/12 Verifying : dnf-conf-1.1.10-6.fc25.noarch 3/12 Verifying : python3-hawkey-0.6.4-3.fc25.x86_64 4/12 Verifying : dnf-yum-1.1.10-6.fc25.noarch 5/12 Verifying : hawkey-0.6.4-3.fc25.x86_64 6/12 Verifying : hawkey-0.6.3-6.fc25.x86_64 7/12 Verifying : python3-dnf-1.1.10-3.fc25.noarch 8/12 Verifying : dnf-1.1.10-3.fc25.noarch 9/12 Verifying : dnf-conf-1.1.10-3.fc25.noarch 10/12 Verifying : dnf-yum-1.1.10-3.fc25.noarch 11/12 Verifying : python3-hawkey-0.6.3-6.fc25.x86_64 12/12 Upgraded: dnf.noarch 1.1.10-6.fc25 dnf-conf.noarch 1.1.10-6.fc25 dnf-yum.noarch 1.1.10-6.fc25 hawkey.x86_64 0.6.4-3.fc25 python3-dnf.noarch 1.1.10-6.fc25 python3-hawkey.x86_64 0.6.4-3.fc25 Complete! [vagrant@f25vanilla ~]$
can you give me the checksum of your box.img file in your ~.vagrant.d directory?
box.img
~.vagrant.d
$ sha512sum ~/.vagrant.d/boxes/f25-cloud-libvirt/0/libvirt/box.img 3866b6e7aa587e6a8aa41df93bb88c5226a6e131d435ddcd6d39764ec5aba281a73a011d1ca1b827e424ebdfc5c26451cfb15b2c55a4f635a7a0d9ef4d47dd0a /home/rbarlow/.vagrant.d/boxes/f25-cloud-libvirt/0/libvirt/box.img
here is my sha512sum:
+[dustymabe@media f25 (master *%=)]$ sha512sum /guests/vagrant.d/boxes/fedora-VAGRANTSLASH-25-cloud-base/20161122/libvirt/box.img 3866b6e7aa587e6a8aa41df93bb88c5226a6e131d435ddcd6d39764ec5aba281a73a011d1ca1b827e424ebdfc5c26451cfb15b2c55a4f635a7a0d9ef4d47dd0a /guests/vagrant.d/boxes/fedora-VAGRANTSLASH-25-cloud-base/20161122/libvirt/box.img
A very minimal Vagrantfile does not experience this issue, so I now assume that something about the Bodhi Vagrantfile is causing this:
# -*- mode: ruby -*- # vi: set ft=ruby : # On your host: # git clone https://github.com/fedora-infra/bodhi.git # cd bodhi # cp Vagrantfile.example Vagrantfile # vagrant up # vagrant ssh -c "cd /home/vagrant/bodhi; pserve development.ini --reload" VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/25/CloudImages/x86_64/images/Fedora-Cloud-Base-Vagrant-25-1.3.x86_64.vagrant-libvirt.box" config.vm.box = "f25-cloud-libvirt" # Comment this line if you would like to disable the automatic update during provisioning config.vm.provision "shell", inline: "sudo dnf upgrade -y" end
Dusty, once again I have failed to find a bug in your code. But I will keep trying!
Metadata Update from @bowlofeggs: - Issue status updated to: Closed (was: Open)