sudo pacman -S php81-cli 1 ✘ 4s
[sudo] password for santy:
resolving dependencies...
looking for conflicts between packages...
Packages (2) php81-8.1.21-1 php81-cli-8.1.21-1
Total download size: 2.84 MiB
Total installation size: 13.55 MiB
:: Continue with the installation? [Y/n] yes
:: Getting the packages...
could not download php81-cli-8.1.21-1-x86_64.pkg.tar.zst
Total (1/2) 2.8 MiB 937 KiB/s 00:03 [################################# ####] 100%
error: Could not get file "php81-cli-8.1.21-1-x86_64.pkg.tar.zst" from download.opensuse.org: Maximum file size exceeded
warning: could not receive some files
error: operation failed (download library error)
Errors occurred, so the packages will not be updated
Well, in that case, I would advise you to download the package php81-cli-8.1.21-1-x86_64.pkg.tar.zst from download.opensuse.org directly with a browser of your choice, save it in your ~/Downloads folder, and then install it manually, like so…
cd ~/Downloads
sudo pacman -U php81-cli-8.1.21-1-x86_64.pkg.tar.zst
Well, okay, upon closer inspection, we’re off on the wrong foot. You are trying to access the AUR by way of pacman, but pacman does not have access to the AUR. For that you need pamac instead.
As a regular user — without sudo! — run the following command…
Okay, so the uploader’s signature has expired. That brings us back to the earlier part. Download this package and its matching signature file. Save them both in ~/Downloads and then…
cd ~/Downloads
sudo pacman -U php81-cli-8.1.21-1-x86_64.pkg.tar.zst
This is a slightly older version of the package, so maybe this will work.
I don’t want to spoil the fun, but if you have at any point in time at least partially succeeded to do what you tried in the first post - you now have or will soon have an utterly broken system. You tried to force pamac to work with mirror for another OS…and the keys for that mirror. How do you think it will work out when anything from the rest of the system tries to update.
And i would personally never use Arch based distro (rolling release) for a web server…
To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:
```
pasted text
```
Or three (3) tilde signs, like this:
~~~
pasted text
~~~
This will just cause it to be rendered like this:
Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.
Instead of like this:
Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.
Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as descrribed above.
Thereby improving legibility and making it much easier for those trying to be of assistance.
Please edit your post accordingly.
For more information, please see:
Additionally
If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:
LC_ALL=C bluetoothctl
This will just cause the terminal output to be in English, making it easier to understand and debug.
Hi, I’m not using an arch version for web servers, I switched from xubuntu to manjaro, which I liked, and I’m a web and app developer, and I have a laravel system that uses php8.1 and updating it would take me a long time. That’s why to be able to use composer and not throw errors I want to install that version. Thank you
For the initial question you received your answer (use containers), but i would advise you to try to install or update any program whatsoever and if it fails to start repairing the system (keyring, pacman.conf, mirrors). Or if it a brand new install - just reinstall.