Python related issues while updating

While running garuda-update I hit this error. I've been following best practices and using virtual environments for all my python related things, so I don't know why this would happen. I found this possibly related issue on GitHub: error on pip install, tried with various packages · Issue #10984 · pypa/pip · GitHub and this issue here (which failed the same way): Not able to install Python Pip Package

System:
Kernel: 5.18.3-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=1748cca7-e422-4ed9-bd5c-3d12856f8671 rw [email protected]
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1
resume=UUID=dbb7a323-f52a-40d2-8ad1-ca512a750c83 loglevel=3
sysrq_always_enabled=1
Desktop: KDE Plasma v: 5.25.2 tk: Qt v: 5.15.5 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASRock model: X570 Taichi serial: <superuser required>
UEFI: American Megatrends v: P4.30 date: 04/14/2021
CPU:
Info: model: AMD Ryzen 9 3900XT bits: 64 type: MT MCP arch: Zen 2 gen: 3
built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23)
model-id: 0x71 (113) stepping: 0 microcode: 0x8701021
Topology: cpus: 1x cores: 12 tpc: 2 threads: 24 smt: enabled cache:
L1: 768 KiB desc: d-12x32 KiB; i-12x32 KiB L2: 6 MiB desc: 12x512 KiB
L3: 64 MiB desc: 4x16 MiB
Speed (MHz): avg: 4133 high: 4249 min/max: 2200/4776 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 4225 2: 4249
3: 4114 4: 4240 5: 4219 6: 4233 7: 4071 8: 3880 9: 4065 10: 3766 11: 4214
12: 4239 13: 4225 14: 4239 15: 4140 16: 4071 17: 3706 18: 4204 19: 4138
20: 4185 21: 4181 22: 4187 23: 4181 24: 4242 bogomips: 182403
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Retpolines, IBPB: conditional, STIBP: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M]
vendor: ASRock driver: amdgpu v: kernel arch: RDNA 2 process: TSMC n7 (7nm)
built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
active: DP-1, DP-2, DP-3, HDMI-A-1 empty: none bus-ID: 0f:00.0
chip-ID: 1002:73df class-ID: 0300
Device-2: Logitech C922 Pro Stream Webcam type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 3-4:3 chip-ID: 046d:085c
class-ID: 0102 serial: <filter>
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa gpu: amdgpu display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 7680x1971 s-dpi: 96 s-size: 2032x521mm (80.00x20.51")
s-diag: 2098mm (82.59")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: 3-4 model: Samsung SyncMaster
serial: <filter> built: 2006 res: 1280x1024 hz: 60 dpi: 86 gamma: 1.2
size: 376x301mm (14.8x11.85") diag: 482mm (19") ratio: 5:4 modes:
max: 1280x1024 min: 720x400
Monitor-2: DP-2 mapped: DisplayPort-1 pos: 2-1 model: Acer G246HL
serial: <filter> built: 2013 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2
size: 531x299mm (20.91x11.77") diag: 609mm (24") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-3: DP-3 mapped: DisplayPort-2 pos: primary,1-2
model: LG (GoldStar) QHD serial: <filter> built: 2021 res: 2560x1440
hz: 144 dpi: 93 gamma: 1.2 size: 697x392mm (27.44x15.43")
diag: 800mm (31.5") ratio: 16:9 modes: max: 2560x1440 min: 640x480
Monitor-4: HDMI-A-1 mapped: HDMI-A-0 pos: 4-3 model: LCD TV built: 2011
res: 1920x1080 hz: 60 dpi: 3048 gamma: 1.2 size: 16x9mm (0.63x0.35")
diag: 6mm (0.2") ratio: 15:9 modes: max: 1920x1080 min: 640x480
OpenGL: renderer: AMD Radeon RX 6700 XT (navy_flounder LLVM 13.0.1 DRM
3.46 5.18.3-zen1-1-zen)
v: 4.6 Mesa 22.1.2 direct render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
pcie: bus-ID: 3-4:3 gen: 4 chip-ID: 046d:085c speed: 16 GT/s class-ID: 0102
lanes: 16 serial: <filter> bus-ID: 0f:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: ASRock
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 11:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Logitech C922 Pro Stream Webcam type: USB
driver: snd-usb-audio,uvcvideo
Device-4: C-Media USB PnP Sound Device type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 5-3:4 chip-ID: 0d8c:013a
class-ID: 0300
Sound Server-1: ALSA v: k5.18.3-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 16.1 running: no
Sound Server-3: PipeWire v: 0.3.52 running: yes
Network:
Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 bus-ID: 05:00.0 chip-ID: 8086:2723 class-ID: 0280
IF: wlp5s0 state: up mac: <filter>
Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: kernel
pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 07:00.0
chip-ID: 8086:1539 class-ID: 0200
IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: tailscale0 state: unknown speed: -1 duplex: full mac: N/A
IF-ID-2: virbr0 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 3-2:2 chip-ID: 8087:0029 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: down
bt-service: enabled,running rfk-block: hardware: no software: yes
address: <filter>
Drives:
Local Storage: total: 2.27 TiB used: 1.63 TiB (71.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
model: SSD 970 EVO Plus 2TB size: 1.82 TiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 2B2QEXM7 temp: 49.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 840 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: DB6Q scheme: GPT
Partition:
ID-1: / raw-size: 1.75 TiB size: 1.75 TiB (100.00%) used: 1.63 TiB (93.1%)
fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%)
used: 546 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 1.75 TiB size: 1.75 TiB (100.00%)
used: 1.63 TiB (93.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 1.75 TiB size: 1.75 TiB (100.00%)
used: 1.63 TiB (93.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 1.75 TiB size: 1.75 TiB (100.00%)
used: 1.63 TiB (93.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 62.73 GiB used: 138 MiB (0.2%)
priority: 100 dev: /dev/zram0
ID-2: swap-2 type: partition size: 69.07 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
System Temperatures: cpu: 41.0 C mobo: 41.0 C gpu: amdgpu temp: 58.0 C
mem: 56.0 C
Fan Speeds (RPM): fan-1: 0 fan-2: 1049 fan-3: 0 fan-4: 1488 fan-5: 1162
fan-6: 2231 fan-7: 0 gpu: amdgpu fan: 0
Info:
Processes: 635 Uptime: 13d 5h 50m wakeups: 0 Memory: 62.73 GiB
used: 18.8 GiB (30.0%) Init: systemd v: 251 default: graphical
tool: systemctl Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 2851
lib: 628 flatpak: 0 Shell: Bash v: 5.1.16 running-in: yakuake inxi: 3.3.19
Garuda (2.6.4-2):
System install date:     2021-06-18
Last full system update: 2022-06-29 ↻
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:            [email protected]
:: Synchronizing package databases...
garuda is up to date
core is up to date
extra is up to date
community is up to date
multilib is up to date
aurto is up to date
chaotic-aur is up to date

--> Refreshing mirrorlists using reflector, please be patient..
[2022-06-30 03:48:35] WARNING: failed to rate http(s) download (https://mirror.cyberbits.asia/archlinux/community/os/x86_64/community.db): HTTP Error 403: Forbidden
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
# When:       2022-06-30 07:48:42 UTC
# From:       https://archlinux.org/mirrors/status/json/
# Retrieved:  2022-06-30 07:48:35 UTC
# Last Check: 2022-06-30 07:02:15 UTC

Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch
Server = https://archlinux.mirror.luzea.de/$repo/os/$arch
Server = https://mirror.moson.org/arch/$repo/os/$arch
Server = https://archlinux.thaller.ws/$repo/os/$arch
Server = https://mirror.cyberbits.asia/archlinux/$repo/os/$arch

:: Synchronizing package databases...
garuda                                                                                                       73.3 KiB   169 KiB/s 00:00 [------------------------------------------------------------------------------------] 100%
core                                                                                                        156.4 KiB   304 KiB/s 00:01 [------------------------------------------------------------------------------------] 100%
extra                                                                                                      1718.6 KiB  2.41 MiB/s 00:01 [------------------------------------------------------------------------------------] 100%
community                                                                                                     6.7 MiB  6.28 MiB/s 00:01 [------------------------------------------------------------------------------------] 100%
multilib                                                                                                    170.6 KiB   299 KiB/s 00:01 [------------------------------------------------------------------------------------] 100%
aurto                                                                                                       170.0 KiB  55.3 MiB/s 00:00 [------------------------------------------------------------------------------------] 100%
chaotic-aur                                                                                                1855.3 KiB  2.08 MiB/s 00:01 [------------------------------------------------------------------------------------] 100%
spawn pacman -Su
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (21)                      Old Version                   New Version                   Net Change

community/argyllcms               2.3.0-1                       2.3.1-1                        -0.29 MiB
chaotic-aur/cmake-git             3.24.0.rc2.209.gb1d8141534-1  3.24.0.rc2.210.g4c2cead0c3-1    0.00 MiB
extra/glib-networking             1:2.72.0-1                    1:2.72.1-1                      0.00 MiB
extra/harfbuzz                    4.4.0-1                       4.4.1-1                         0.00 MiB
extra/harfbuzz-icu                4.4.0-1                       4.4.1-1                         0.00 MiB
extra/hplip                       1:3.22.4-2                    1:3.22.6-1                      1.78 MiB
chaotic-aur/latte-dock-git        0.10.6.r260.g899c0155-1       0.10.6.r260.g899c0155-1.1       0.00 MiB
multilib/lib32-glib-networking    2.72.0-1                      2.72.1-1                        0.00 MiB
multilib/lib32-harfbuzz           4.4.0-1                       4.4.1-1                         0.00 MiB
chaotic-aur/makemkv               1.16.7-1                      1.17.0-1                        0.28 MiB
chaotic-aur/nheko-git             0.9.3.r226.gb6bbbdea-1        0.9.3.r227.g91f1c00e-1          0.00 MiB
chaotic-aur/peazip-qt5            8.6.0-2                       8.7.0-1                         0.11 MiB
chaotic-aur/pnpm                  7.2.1-0                       7.4.0-0                         0.39 MiB
extra/python-pip                  21.0-1                        22.1.2-1                        1.04 MiB
extra/python-resolvelib           0.5.5-4                       0.8.1-1                         0.01 MiB
community/python-tenacity                                       8.0.1-3                         0.14 MiB
extra/qt5-base                    5.15.5+kde+r163-1             5.15.5+kde+r166-1               0.03 MiB
core/sqlite                       3.38.5-1                      3.39.0-2                        0.02 MiB
chaotic-aur/sweet-theme-full-git  r273.053be77-1                r274.7da8215-1                 -0.03 MiB
aurto/viddy                       0.3.4-1                       0.3.6-1                         0.01 MiB
chaotic-aur/ytfzf-git             r1539.1b17caa-1               r1543.29f2710-1                 0.00 MiB

Total Installed Size:  430.59 MiB
Net Upgrade Size:        3.49 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
viddy-0.3.6-1-x86_64 is up to date
(21/21) checking keys in keyring                                                                                                         [------------------------------------------------------------------------------------] 100%
(21/21) checking package integrity                                                                                                       [------------------------------------------------------------------------------------] 100%
(21/21) loading package files                                                                                                            [------------------------------------------------------------------------------------] 100%
(21/21) checking for file conflicts                                                                                                      [------------------------------------------------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/commands/__pycache__/index.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/commands/index.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/index/__pycache__/sources.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/index/sources.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/locations/__init__.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/__init__.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/_distutils.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/_sysconfig.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/base.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/locations/_distutils.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/locations/_sysconfig.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/locations/base.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/metadata/__init__.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/__init__.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/base.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/pkg_resources.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/metadata/base.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/metadata/pkg_resources.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/operations/build/__pycache__/metadata_editable.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/operations/build/__pycache__/wheel_editable.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_editable.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_editable.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/utils/__pycache__/_log.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/utils/__pycache__/egg_link.cpython-310.pyc exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/utils/_log.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/_internal/utils/egg_link.py exists in filesystem
python-pip: /usr/lib/python3.10/site-packages/pip/py.typed exists in filesystem
Errors occurred, no packages were upgraded.

Maybe check if this can help also in your case:

2 Likes

Could not find python-pip with

pacman -Qo python-pip
error: No package owns python-pip

So I made this:

[[email protected] ~]$ cat failed_files.sh
#!/usr/bin/env bash
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/commands/__pycache__/index.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/commands/index.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/index/__pycache__/sources.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/index/sources.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/locations/__init__.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/__init__.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/_distutils.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/_sysconfig.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/base.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/locations/_distutils.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/locations/_sysconfig.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/locations/base.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/metadata/__init__.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/__init__.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/base.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/pkg_resources.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/metadata/base.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/metadata/pkg_resources.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/operations/build/__pycache__/metadata_editable.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/operations/build/__pycache__/wheel_editable.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_editable.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_editable.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/utils/__pycache__/_log.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/utils/__pycache__/egg_link.cpython-310.pyc
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/utils/_log.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/utils/egg_link.py
pacman -Qo /usr/lib/python3.10/site-packages/pip/py.typed
[[email protected] ~]$ ./failed_files.sh
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/commands/__pycache__/index.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/commands/index.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/index/__pycache__/sources.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/index/sources.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/locations/__init__.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/__init__.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/_distutils.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/_sysconfig.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/base.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/locations/_distutils.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/locations/_sysconfig.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/locations/base.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/metadata/__init__.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/__init__.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/base.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/pkg_resources.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/metadata/base.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/metadata/pkg_resources.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/operations/build/__pycache__/metadata_editable.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/operations/build/__pycache__/wheel_editable.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_editable.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_editable.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/utils/__pycache__/_log.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/utils/__pycache__/egg_link.cpython-310.pyc
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/utils/_log.py
error: No package owns /usr/lib/python3.10/site-packages/pip/_internal/utils/egg_link.py
error: No package owns /usr/lib/python3.10/site-packages/pip/py.typed

So does this mean that the best course of action is to use overwrite?
According to pacman manpages:

--overwrite <glob>
Bypass file conflict checks and overwrite conflicting files. If the package that is about to be installed contains files that are already installed and match glob, this option will cause all those files to be
overwritten. Using --overwrite will not allow overwriting a directory with a file or installing packages with conflicting files and directories. Multiple patterns can be specified by separating them with a
comma. May be specified multiple times. Patterns can be negated, such that files matching them will not be overwritten, by prefixing them with an exclamation mark. Subsequent matches will override previous ones.
A leading literal exclamation mark or backslash needs to be escaped.

So for me that would be:

sudo pacman -Syu --overwrite /usr/lib/python3.10/site-packages/pip/_internal/commands/__pycache__/index.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/commands/index.py,/usr/lib/python3.10/site-packages/pip/_internal/index/__pycache__/sources.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/index/sources.py,/usr/lib/python3.10/site-packages/pip/_internal/locations/__init__.py,/usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/__init__.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/_distutils.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/_sysconfig.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/locations/__pycache__/base.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/locations/_distutils.py,/usr/lib/python3.10/site-packages/pip/_internal/locations/_sysconfig.py,/usr/lib/python3.10/site-packages/pip/_internal/locations/base.py,/usr/lib/python3.10/site-packages/pip/_internal/metadata/__init__.py,/usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/__init__.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/base.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/metadata/__pycache__/pkg_resources.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/metadata/base.py,/usr/lib/python3.10/site-packages/pip/_internal/metadata/pkg_resources.py,/usr/lib/python3.10/site-packages/pip/_internal/operations/build/__pycache__/metadata_editable.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/operations/build/__pycache__/wheel_editable.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_editable.py,/usr/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_editable.py,/usr/lib/python3.10/site-packages/pip/_internal/utils/__pycache__/_log.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/utils/__pycache__/egg_link.cpython-310.pyc,/usr/lib/python3.10/site-packages/pip/_internal/utils/_log.py,/usr/lib/python3.10/site-packages/pip/_internal/utils/egg_link.py,/usr/lib/python3.10/site-packages/pip/py.typed

Is that correct?

I used to do it like this.

sudo pacman -Syu --overwrite '*'
2 Likes

That did it!

1 Like

With -Qo from a file you find the package, which is python-pip.
You could do a

sudo pacman -S python-pip --overwrite /usr/lib/python3.10/site-packages/pip/*

Or the brute-force :blush:

3 Likes

Thank you for this, definitely gonna bookmark it

Brute force was the way for me

4 Likes

The files might have been installed by another package or script. In this case, pacman would not be able to detect which package owns them in the first place :eyes:

3 Likes

I figured as much, which was why I was so confused by it at first. I've never used another script or package to install things. Virtual environments should have been a way to completely stop this from ever being an issue. :confused:

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