Upgrade Fedora muncul pesan error An error occurred when parsing the temporary files memory file at '/var/cache/libdnf5/temporary_files.toml': [error] toml::value::as_array(): bad_cast to array
Command yang dijalankan
$ sudo dnf upgrade -y >>> Interrupted [68/72] vim-data-2:9.1.1623-1.fc42.noarch 0% | 0.0 B/s | -1.0 B | ? >>> Interrupted [69/72] vim-enhanced-2:9.1.1623-1.fc42.x86_64 0% | 0.0 B/s | -1.0 B | ? >>> Interrupted [70/72] vim-minimal-2:9.1.1623-1.fc42.x86_64 0% | 0.0 B/s | -1.0 B | ? >>> Interrupted [71/72] vim-filesystem-2:9.1.1623-1.fc42.noarch 0% | 0.0 B/s | -1.0 B | ? >>> Interrupted [72/72] xxd-2:9.1.1623-1.fc42.x86_64 0% | 0.0 B/s | -1.0 B | ? >>> Interrupted ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- [72/72] Total ???% | -17.6 KiB/s | -72.0 B | 00m00s Failed to download packages An error occurred when parsing the temporary files memory file at '/var/cache/libdnf5/temporary_files.toml': [error] toml::value::as_array(): bad_cast to array --> unknown file
Saat dicek file temporary_files.toml
kosong
$ ls -lah /var/cache/libdnf5/ total 4.0K drwxr-xr-x. 1 root root 562 Aug 14 22:14 . drwxr-xr-x. 1 root root 272 Jul 30 07:00 .. drwxr-xr-x. 1 root root 26 Aug 14 22:14 fedora-cisco-openh264-3266569a7903cbb7 drwxr-xr-x. 1 root root 26 Aug 14 22:14 fedora-f8e7c8bda68a349e drwxr-xr-x. 1 root root 26 Aug 14 22:14 google-chrome-6ed7e4f336f6863c drwxr-xr-x. 1 root root 26 Aug 14 22:14 rpmfusion-free-8c07f02fba28a759 drwxr-xr-x. 1 root root 26 Aug 14 22:14 rpmfusion-free-updates-e6d3405f7e8daf87 drwxr-xr-x. 1 root root 26 Aug 14 22:14 rpmfusion-nonfree-b335a617f542565d drwxr-xr-x. 1 root root 26 Aug 14 22:14 rpmfusion-nonfree-updates-2679bfa76a8aedee -rw-r--r--. 1 root root 0 Aug 13 10:07 temporary_files.toml drwxr-xr-x. 1 root root 52 Aug 14 22:14 updates-79babcf8637033ce
solusinya cukup hapus file temporary_files.toml
sudo rm -f /var/cache/libdnf5/temporary_files.toml
lalu jalankan perintah dnf upgrade
kembali
sudo dnf upgrade -y