Missing file in /var/lib/pacman/local/spython-scikit-learn-1.1.2-1/desc stops major upgrade

What to do…?

]$ sudo pacman -Syu
:: Synchronizing package databases...
---
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/python-scikit-learn-1.1.2-1/desc: No such file or directory
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package python-scikit-learn-1.1.2-1
error: failed to prepare transaction (invalid or corrupted package)
]$ sudo find / -name 'python-scikit-learn*'
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
/var/cache/pacman/pkg/python-scikit-learn-1.1.2-1-x86_64.pkg.tar.zst
/var/lib/pacman/local/python-scikit-learn-1.1.2-1
]$ sudo pacman -Qii python-scikit-learn
error: could not open file /var/lib/pacman/local/python-scikit-learn-1.1.2-1/desc: No such file or directory
Name            : python-scikit-learn
Version         : 1.1.2-1
Description     : None
Architecture    : None
URL             : None
Licenses        : None
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 0.00 B
Packager        : None
Build Date      : Wed 31 Dec 1969 04:00:00 PM PST
Install Date    : Wed 31 Dec 1969 04:00:00 PM PST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Unknown
Backup Files    :
(none)type or paste code here
pacman -S --dbonly python-scikit-learn

Fail :frowning:

# pacman -S --dbonly python-scikit-learn
resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/python-scikit-learn-1.1.2-1/desc: No such file or directory
warning: could not fully load metadata for package python-scikit-learn-1.1.2-1
error: failed to prepare transaction (invalid or corrupted package)

Tried to reinstall prior version, fail :frowning:

]# pwd
/var/cache/pacman/pkg
]# pacman -U python-scikit-learn-1.1.2-1-x86_64.pkg.tar.zst
loading packages...
warning: python-scikit-learn-1.1.2-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/python-scikit-learn-1.1.2-1/desc: No such file or directory
warning: could not fully load metadata for package python-scikit-learn-1.1.2-1
error: failed to prepare transaction (invalid or corrupted package)

Does this work? (I refuse to create empty files)

rm -r /var/lib/pacman/local/python-scikit-learn-1.1.2-1
pacman -S --dbonly python-scikit-learn

Bingo! :slight_smile:
Thanks…!
Big update now proceeds :fu:

]# rm -r /var/lib/pacman/local/python-scikit-learn-1.1.2-1
]# pacman -S --dbonly python-scikit-learn
resolving dependencies...
looking for conflicting packages...

Packages (1) python-scikit-learn-1.1.3-1

Total Download Size:    6.24 MiB
Total Installed Size:  37.67 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
--2022-11-14 11:16:00--  http://mirror.fcix.net/manjaro/stable/community/x86_64/python-scikit-learn-1.1.3-1-x86_64.pkg.tar.zst
Resolving mirror.fcix.net (mirror.fcix.net)... 23.152.160.16, 2620:13b:0:1000::16
Connecting to mirror.fcix.net (mirror.fcix.net)|23.152.160.16|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6540414 (6.2M) [application/octet-stream]
Saving to: ‘/var/cache/pacman/pkg/python-scikit-learn-1.1.3-1-x86_64.pkg.tar.zst.part’

/var/cache/pacman/pkg/python-scikit-l 100%[=========================================================================>]   6.24M  10.0MB/s    in 0.6s

2022-11-14 11:16:01 (10.0 MB/s) - ‘/var/cache/pacman/pkg/python-scikit-learn-1.1.3-1-x86_64.pkg.tar.zst.part’ saved [6540414/6540414]

(1/1) checking keys in keyring                                                              [#####################################################] 100%
(1/1) checking package integrity                                                            [#####################################################] 100%
(1/1) loading package files                                                                 [#####################################################] 100%
:: Processing package changes...
Optional dependencies for python-scikit-learn
    python-matplotlib: plotting capabilities
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
]# pacman -Qii python-scikit-learn
Name            : python-scikit-learn
Version         : 1.1.3-1
Description     : A set of python modules for machine learning and data mining
Architecture    : x86_64
URL             : https://scikit-learn.org
Licenses        : BSD
Groups          : None
Provides        : None
Depends On      : python-scipy  python-joblib  python-numpy  python-threadpoolctl
Optional Deps   : python-matplotlib: plotting capabilities
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 37.67 MiB
Packager        : Caleb Maclennan <alerque@archlinux.org>
Build Date      : Mon 07 Nov 2022 06:51:00 AM PST
Install Date    : Mon 14 Nov 2022 11:16:02 AM PST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
Backup Files    :
(none)

@keepitsimpleengineer No need to add [SOLVED] to your topic title. This is a Discourse forum, it works differently than some older forum software. You’ve already marked a reply as the solution, that’s how it works here.

See Solved | Discourse - Civilized Discussion

1 Like

Well to be honest, I did it once I saw it worked for him. :stuck_out_tongue:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.