You are not logged in.

#1 2020-05-02 14:57:10

scot
Member
Registered: 2017-04-22
Posts: 36

can't retrieve package cmake with correct version: version #?

I'm not certain I have a problem, but I'd appreciate an explanation for what I'm seeing.             

I need to install cmake. So I  first do:


 sudo pacman -Syu  
pacman -S cmake 

The response to this second command is a long set of lines:

error: failed retrieving file 'cmake-3.17.1-2-x86_64.pkg.tar.zst' from mirrors.evowise.com : The requested URL returned error: 404  

one for each mirror in my list. I often get this is if I forget to do  pacman -Syu first, but i didn't forget this time.

So I then go to the Arch Linux package search page, search for cmake, and choose "download from mirrors". I am pointed to cmake-3.17.2-1-x86_64.pkg.tar.zst, which i download to /var/cache/pacman/pkgs/ and install it with  pacman -U. Everything seems ok. I then do a quick reality check by typing

pacman -S cmake  

once again.  What I expect is that pacman will reinstall cmake from the copy in its cache.  Instead I get the following:

[scott@scott-dell7577 build]$ sudo pacman -S cmake
warning: downgrading package cmake (3.17.2-1 => 3.17.1-2)
resolving dependencies...
looking for conflicting packages...

Packages (1) cmake-3.17.1-2

Total Download Size:    7.31 MiB
Total Installed Size:  39.25 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
error: failed retrieving file 'cmake-3.17.1-2-x86_64.pkg.tar.zst' from mirrors.evowise.com : The requested URL returned error: 404
error: failed retrieving file 'cmake-3.17.1-2-x86_64.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'cmake-3.17.1-2-x86_64.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'cmake-3.17.1-2-x86_64.pkg.tar.zst' from mirror.aarnet.edu.au : The requested URL returned error: 404
error: failed retrieving file 'cmake-3.17.1-2-x86_64.pkg.tar.zst' from archlinux.mirror.digitalpacific.com.au : The requested URL returned error: 404
^Cerror: failed retrieving file 'cmake-3.17.1-2-x86_64.pkg.tar.zst' from archlinux.mirror.digitalpacific.com.au : The requested URL returned error: 404

Interrupt signal received

So it seems that something is telling "the system" that the latest version is 3.17.1-2 , I suppose it checks the local cache and sees that it's not there, so it goes to the mirrors to retrieve it.... and  none of them have it because it's such an old version

Someone needs to be informed, but whom? and what?

What i don't understand is:
1. however it determined that the current version is 3.17.1-2, why didn't it correct itself immediately up on finding a NEWER version in its own cache?
2. Do I have to worry that i have a "too new" version of cmake is installed on my machine?
3.THe first sign to me that there was trouble was that pacman couldn't find retrieve an "appropriate version" of cmake, even after I had done pacman -Syu.   What  was the correct thing to do at that point?

thank you

Offline

#2 2020-05-02 15:00:07

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: can't retrieve package cmake with correct version: version #?

Sounds like your mirror has/had old databases. Update again.

Offline

#3 2020-05-02 15:00:15

loqs
Member
Registered: 2014-03-06
Posts: 19,077

Re: can't retrieve package cmake with correct version: version #?

What is the output of

pacman -S cmake --debug

Offline

Board footer

Powered by FluxBB