You are not logged in.

#1 2018-02-11 09:45:20

Ats
Member
Registered: 2018-02-11
Posts: 4

Cannot install packages

Hi, everyone at Archlinux32!
Iam new here, installed arch recently, And I like it. But now I have problems with pacman:

[ants@ats-pc ~]$ sudo pacman -S docbook-xml
resolving dependencies...
looking for conflicting packages...

Packages (1) docbook-xml-4.5-6

Total Download Size:   0,08 MiB
Total Installed Size:  2,04 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from arch32.mirrors.simplysam.us : The requested URL returned error: 404
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from archlinux32.mirror.roelf.org : SSL certificate problem: certificate has expired
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from archlinux32.vollzornbrot.de : The requested URL returned error: 404
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from archlinux32.vollzornbrot.de : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from mirror.archlinux32.org : The requested URL returned error: 404
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from mirror.archlinux32.org : The requested URL returned error: 404
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from mirror.archlinux32.oss : Could not resolve host: mirror.archlinux32.oss
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from ind.mirror.archlinux32.org : The requested URL returned error: 404
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from jpn.mirror.archlinux32.org : The requested URL returned error: 404
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from mex.mirror.archlinux32.org : The requested URL returned error: 404
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from sgp.mirror.archlinux32.org : The requested URL returned error: 404
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from 32.arlm.tyzoid.com : The requested URL returned error: 404
error: failed retrieving file 'docbook-xml-4.5-6-i686.pkg.tar.xz' from mirror.math.princeton.edu : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

/etc/pacman.d/mirrorlist is

##
## Arch Linux repository mirrorlist for i686
## Generated on 2017-11-15
##

## Canada
Server = http://arch32.mirrors.simplysam.us/$arch/$repo

## France
Server = https://archlinux32.mirror.roelf.org/$arch/$repo

## Germany
Server = http://archlinux32.vollzornbrot.de/$arch/$repo
Server = https://archlinux32.vollzornbrot.de/$arch/$repo
Server = http://mirror.archlinux32.org/$arch/$repo
Server = https://mirror.archlinux32.org/$arch/$repo
## note: you need to resolve via openNIC (or similar) to access the next mirror
Server = http://mirror.archlinux32.oss/$arch/$repo

## India
Server = https://ind.mirror.archlinux32.org/$arch/$repo

## Japan
Server = https://jpn.mirror.archlinux32.org/$arch/$repo

## Mexico
Server = https://mex.mirror.archlinux32.org/$arch/$repo

## Singapore
Server = https://sgp.mirror.archlinux32.org/$arch/$repo

## United States
Server = https://32.arlm.tyzoid.com/$arch/$repo?

What should I do to fix this?

Offline

#2 2018-02-11 20:20:28

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 436

Re: Cannot install packages

Did you run

sudo pacman -Sy

before trying to install?
You can do both in one with

sudo pacman -Sy docbook-xml

regards,
deep42thought

Offline

#3 2018-02-11 21:36:54

barius
Member
Registered: 2018-02-11
Posts: 1

Re: Cannot install packages

I just switched from the old official repos (GONE!) to archlinux32 and I had the identical same issue with automake-1.15.1-1.
The HTTP 404 error comes because the repository index db is incorrect.  It says that it is a *-i686-* package whereas in fact the package file available for download is a noarch *-any-* package!  The HTTP 404 message is because indeed pacman will never find 'docbook-xml-4.5-6-i686.pkg.tar.xz' because the package that is available is 'docbook-xml-4.5-6-any.pkg.tar.xz'.

As far as I can tell this is an error in the core.db for automake and in the extra.db for docbook-xml.  These may be isolated errors or they may be a symptom of a more general problem with noarch packages in the archlinux32 build process.


The work-around is to download the package file, e.g. https://mirror.archlinux32.org/i686/ext … pkg.tar.xz, and install it manually with

sudo pacman -U docbook-xml-4.5-6-any.pkg.tar.xz

After that, pacman will see the correct version installed and not try to upgrade it.

BTW, that won't make the SSL errors go away - that's probably an issue with the trusted root ca store, which I haven't yet figured out myself.  You can comment out the https urls in your mirrorlist...


Segui il tuo corso, e lascia dir le genti. - Dante, La Divina Commedia
(Follow your own path and let people say what they will.)

Offline

#4 2018-02-12 08:54:14

Ats
Member
Registered: 2018-02-11
Posts: 4

Re: Cannot install packages

Thanks for your help! deep42thought, I already ran those commands with same results. And Barius, I used that workaround once. But what to do with that issue with SSl i did'nt find a fix yet.

Offline

#5 2018-02-13 08:26:12

redqueen
Member
Registered: 2017-12-27
Posts: 21

Re: Cannot install packages

Have the same issue wit automake-1.15.1-1.
There is no other version installed, and I can't complete my fresh install.

Offline

#6 2018-02-13 10:36:36

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 436

Re: Cannot install packages

I'm terribly sorry about this: We had these packages (automake,docbook-*,...) with "i686" and "any" arch and I just cleaned up w/o having a look at the database, so there were still the "i686" packages in the database but only the "any" packages on the mirror. This is now fixed on the master mirror, the other mirrors should catch up soon.
The problem with the ssl certificate is known to us, but the mirror maintainer seems currently busy. You can just uncomment that mirror for now.
Cheers,
deep42thought

Offline

#7 2018-02-13 12:07:01

tyzoid
Administrator
From: Ann Arbor, MI
Registered: 2017-06-17
Posts: 90

Re: Cannot install packages

deep42thought wrote:

I'm terribly sorry about this: We had these packages (automake,docbook-*,...) with "i686" and "any" arch and I just cleaned up w/o having a look at the database, so there were still the "i686" packages in the database but only the "any" packages on the mirror. This is now fixed on the master mirror, the other mirrors should catch up soon.
The problem with the ssl certificate is known to us, but the mirror maintainer seems currently busy. You can just uncomment that mirror for now.
Cheers,
deep42thought

Are there db fixups needed in the archive?

Offline

#8 2018-02-13 12:13:10

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 436

Re: Cannot install packages

tyzoid wrote:

Are there db fixups needed in the archive?

possibly "yes".
Run

diff --color -u <(ls | grep '\.xz$' | sort) <(tar -Oxzf *.db.tar.gz --wildcards '*/desc' | grep -xFA1 '%FILENAME%' | grep -vxF -- -- | grep -vxF '%FILENAME%' | sort)

on each repository to check if the database matches the packages.
I did the removal yesterday and fixed the db today, so this is only necessary for yesterdays and todays repositories.

Offline

#9 2019-06-01 09:23:57

mebigyan01
Member
Registered: 2019-06-01
Posts: 1

Re: Cannot install packages

Sorry If I am late to reply but the problem for me was the network. I checked my interface name using "ip link" command and used "dhcpcd interface" command and that connected to my network and "pacman -Syu" command finally worked.

Last edited by mebigyan01 (2019-06-01 09:58:55)

Offline

Board footer

Powered by FluxBB