You are not logged in.

#1 2019-05-19 01:11:16

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 272
Website

SOLVED Pacman error inside of container

I am learning LXD and trying to install the pacman group base-devel inside of a container. The install fails when it reaches the file-5.36-1 package. The strange thing is that I can install the same package onto the localhost just file.

Here is what I am seeing:

lxc exec test -- pacman -S file

warning: file-5.36-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) file-5.36-1

Total Download Size:   0.28 MiB
Total Installed Size:  5.36 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
warning: no /var/cache/pacman/pkg/ cache exists, creating...
:: Retrieving packages...
error: failed retrieving file 'file-5.36-1-x86_64.pkg.tar.xz' from mirrors.kernel.org : Could not resolve host: mirrors.kernel.org
warning: failed to retrieve some files
error: failed to commit transaction (invalid url for server)
Errors occurred, no packages were upgraded.

When I query the container it says that the package is already installed:

lxc exec test -- pacman -Q file

file 5.36-1

From the localhost I have no issue:

sudo pacman -S file

warning: file-5.37-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) file-5.37-1

Total Installed Size:  5.55 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                           [########################################] 100%
(1/1) checking package integrity                                         [########################################] 100%
(1/1) loading package files                                              [########################################] 100%
(1/1) checking for file conflicts                                        [########################################] 100%
(1/1) checking available disk space                                      [########################################] 100%
:: Processing package changes...
(1/1) reinstalling file                                                  [########################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Running sync hook

I am no expert on containers so I am not sure where to be looking for clues. I can't tell if this is a procedural error, a permissions issue or a bug.

Any ideas for how to go about troubleshooting this one?

Last edited by lenhuppe (2019-08-05 17:39:04)


Why do we drive on the parkway and then park in the driveway?

Offline

#2 2019-05-19 01:46:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,570
Website

Re: SOLVED Pacman error inside of container

warning: no /var/cache/pacman/pkg/ cache exists, creating...

Do you get this every time, or did this message only appear once?

If you get that message repeatedly, I suspect that's related - something is deleting (at least) the /var/cache/pacman/pkg directory.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2019-05-19 02:31:22

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 272
Website

Re: SOLVED Pacman error inside of container

Trilby wrote:
warning: no /var/cache/pacman/pkg/ cache exists, creating...

Do you get this every time, or did this message only appear once?

If you get that message repeatedly, I suspect that's related - something is deleting (at least) the /var/cache/pacman/pkg directory.

I don't get the warning every time. I can install other packages just fine. Not sure how that came about. I may have done something wrong. 

Meanwhile I have found the issue. The current version of "file" is 5.37-1 and the version that base-devel is attempting to install is 5.36-1. That's why I get a 404 error.

My guess is that the base-devel group needs to be updated accordingly but I am not sure if I can do that on my end.

Last edited by lenhuppe (2019-05-19 02:39:38)


Why do we drive on the parkway and then park in the driveway?

Offline

#4 2019-05-19 02:50:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,570
Website

Re: SOLVED Pacman error inside of container

No, package versions cannot be in a group - just the package is.  The problem is then that you database needs to be refreshed (-y):

lxc exec test -- pacman -Syu file

Last edited by Trilby (2019-05-19 02:51:46)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2019-05-19 09:39:10

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 272
Website

Re: SOLVED Pacman error inside of container

Trilby wrote:

No, package versions cannot be in a group - just the package is.  The problem is then that you database needs to be refreshed (-y):

lxc exec test -- pacman -Syu file

That did it.


Why do we drive on the parkway and then park in the driveway?

Offline

Board footer

Powered by FluxBB