nokonoko / Uguu

Uguu is a simple lightweight temporary file host with support for drop, paste, click and API uploading.
https://uguu.se
GNU General Public License v3.0
849 stars 106 forks source link

Unable to find many php packages. #102

Closed LiamPerson closed 6 months ago

LiamPerson commented 6 months ago
Thank you ❤
Hi, thanks for making uguu. 
I am trying to deploy this as a docker file so if one exists already, please link! 
This will save me much time and trouble!

Likely related to #100

I am running Debian11 (bullseye) from WSL, and I've also tried through Docker.

My packages are up to date: apt-get update -y also tried with apt update -y just in case.

I am getting the following errors when trying to apt-get install (or apt install) any of the following:

# Docker logs
1.267 E: Unable to locate package php8.1-fpm
1.267 E: Couldn't find any package by glob 'php8.1-fpm'
1.267 E: Couldn't find any package by regex 'php8.1-fpm'
1.267 E: Unable to locate package php8.1
1.267 E: Couldn't find any package by glob 'php8.1'
1.267 E: Couldn't find any package by regex 'php8.1'
1.267 E: Unable to locate package php8.1-sqlite3
1.267 E: Couldn't find any package by glob 'php8.1-sqlite3'
1.267 E: Couldn't find any package by regex 'php8.1-sqlite3'
1.267 E: Unable to locate package php8.1-curl
1.267 E: Couldn't find any package by glob 'php8.1-curl'
1.267 E: Couldn't find any package by regex 'php8.1-curl'
1.267 E: Unable to locate package php8.1-cli
1.267 E: Couldn't find any package by glob 'php8.1-cli'
1.267 E: Couldn't find any package by regex 'php8.1-cli'
1.267 E: Unable to locate package php8.1-lz4
1.267 E: Couldn't find any package by glob 'php8.1-lz4'
1.267 E: Couldn't find any package by regex 'php8.1-lz4'
1.267 E: Unable to locate package php8.1-mcrypt
1.267 E: Couldn't find any package by glob 'php8.1-mcrypt'
1.267 E: Couldn't find any package by regex 'php8.1-mcrypt'
1.267 E: Unable to locate package php8.1-mysql
1.267 E: Couldn't find any package by glob 'php8.1-mysql'
1.267 E: Couldn't find any package by regex 'php8.1-mysql'
1.267 E: Unable to locate package php8.1-pgsql
1.267 E: Couldn't find any package by glob 'php8.1-pgsql'
1.267 E: Couldn't find any package by regex 'php8.1-pgsql'
1.267 E: Unable to locate package php8.1-xdebug
1.267 E: Couldn't find any package by glob 'php8.1-xdebug'
1.267 E: Couldn't find any package by regex 'php8.1-xdebug'
1.267 E: Unable to locate package php8.1-zip
1.267 E: Couldn't find any package by glob 'php8.1-zip'
1.267 E: Couldn't find any package by regex 'php8.1-zip'
1.267 E: Unable to locate package php8.1-common
1.267 E: Couldn't find any package by glob 'php8.1-common'
1.267 E: Couldn't find any package by regex 'php8.1-common'
1.267 E: Unable to locate package php8.1-readline
1.267 E: Couldn't find any package by glob 'php8.1-readline'
1.267 E: Couldn't find any package by regex 'php8.1-readline'
1.267 E: Unable to locate package php8.1-bcmath
1.267 E: Couldn't find any package by glob 'php8.1-bcmath'
1.267 E: Couldn't find any package by regex 'php8.1-bcmath'
1.267 E: Unable to locate package php8.1-common
1.267 E: Couldn't find any package by glob 'php8.1-common'
1.267 E: Couldn't find any package by regex 'php8.1-common'
1.267 E: Unable to locate package php8.1-xml
1.267 E: Couldn't find any package by glob 'php8.1-xml'
1.267 E: Couldn't find any package by regex 'php8.1-xml'
# WSL logs
E: Unable to locate package php8.1-fpm
E: Couldn't find any package by glob 'php8.1-fpm'
E: Couldn't find any package by regex 'php8.1-fpm'
E: Unable to locate package php8.1
E: Couldn't find any package by glob 'php8.1'
E: Couldn't find any package by regex 'php8.1'
E: Unable to locate package php8.1-sqlite3
E: Couldn't find any package by glob 'php8.1-sqlite3'
E: Couldn't find any package by regex 'php8.1-sqlite3'
LiamPerson commented 6 months ago

Ah, I see. I am missing a repository: https://computingforgeeks.com/how-to-install-php-on-debian-linux-2/

# Install required temporary packages:
sudo apt update
sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2

# Add Surý Debian PPA repository to your Debian system.
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list

# Import packages signing GPG key;
curl -fsSL  https://packages.sury.org/php/apt.gpg| sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/sury-keyring.gpg

# Confirm 
sudo apt update
nokonoko commented 6 months ago

Yes, use this repo: https://deb.sury.org/