You are not logged in.
I am about to install a package, but it keeps failing because the file already exists. Since --force option is removed from pacman. I have been trying to overwrite the directory by --overwrite option but unfortunately, this option is also not working
Command I ran:
sudo pacman -S namcap --overwrite /usr/lib/python3.7/site-packages/elftools/elf/*
....
python-pyelftools: /usr/lib/python3.7/site-packages/elftools/elf/notes.py exists in filesystem
python-pyelftools: /usr/lib/python3.7/site-packages/elftools/elf/relocation.py exists in filesystem
python-pyelftools: /usr/lib/python3.7/site-packages/elftools/elf/sections.py exists in filesystem
python-pyelftools: /usr/lib/python3.7/site-packages/elftools/elf/segments.py exists in filesystem
python-pyelftools: /usr/lib/python3.7/site-packages/elftools/elf/structs.py exists in filesystem
Offline
sudo pacman -S namcap --overwrite /usr/lib/python3.7/site-packages/elftools/elf/*
Get rid of the leading /
I believe that you actually need to glob for files in the package archive rather than the final location.
Offline
Maybe quote the path glob so the shell doesn't try to expand it?
sudo pacman -S --overwrite "/usr/lib/python3.7/site-packages/elftools/elf/*" namcap
Edit: Or what Slithery said.
Edit: If you installed pyelftools using pip, then please uninstall and retry your pacman command without overwrite instead.
https://wiki.archlinux.org/index.php/Py … management
If you must use pip, use a virtual environment, or pip install --user to avoid conflicts with packages in /usr. It is always preferred to use pacman to install software.
Last edited by progandy (2019-10-29 18:33:13)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline