yum update error on centos server - server

I tried to run "yum update" on my server but it gives me an error. Below is part of the output when I type "yum update"
--> Running transaction check
---> Package libtidy.i686 0:0.99.0-19.20070615.1.el6 will be installed
---> Package php-common.i686 0:5.3.3-46.el6_6 will be installed
---> Package pytalloc.i686 0:2.0.7-2.el6 will be installed
http://mirror01.idc.hinet.net/EPEL/6/i386/repodata/5d15e6d6e1b58456584beb7bbb0b6 46495aff0da11b1211c208afbddf9a73eed-filelists.sqlite.bz2: [Errno 14] PYCURL ERRO R 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/repodata/5d15e6d6e1b58456584 beb7bbb0b646495aff0da11b1211c208afbddf9a73eed-filelists.sqlite.bz2: [Errno 14] P YCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Then, I tried typing "yum clean all" thinking it would solve my problem. However, it became worst, it gives me another error message and doesn't even show any package that will be installed. (See below).
Loaded plugins: fastestmirror, refresh-packagekit, replace, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
How do I fix this?

Solved by removing all php and reinstalling it again using yum install php php-common.

Related

How to fix `mailtutils` attempting to install a Postgresql version that does not exist?

I'm attempting to install mailutils on Ubuntu 22.04 inside a Docker container, but receiving the following error:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/postgresql-14/libpq5_14.4-0ubuntu0.22.04.1_amd64.deb 404 Not Found [IP: 185.125.190.36 80]
I've had a look at the Ubuntu archive, and as sure as the message claims, Postgresql 14.4 has been replaced with 14.5 (most likely due to a security vulnerability which has been fixed). I've also tried --fix-missing, and it still cannot be resolved.
How do I go about resolving this?

Failed to download metadata for repo appstream

Running on centos 8 today want to install new package and before it wants to run:
yum update -y
but got this:
Failed to download metadata for repo 'appstream': Cannot prepare
internal mirrorlist: No URLs in mirrorlist
Then I did search and found a solution to fix it:
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
I did this but still error persist, any idea? how to fix this? Is there new solution in 2022?
After use this solution
Now error:
Errors during downloading metadata for repository 'extras':
Status code: 403 for https://vault.centos.org/centos/8/extras/x86_64/os/repodata/repomd.xml
(IP: 13.249.9.66) Error: Failed to download metadata for repo
'extras': Cannot download repomd.xml: Cannot download
repodata/repomd.xml: All mirrors were tried

Files list file for package 'git' contains empty filename error

I have a Raspberry Pi 4 running Raspian Lite Version 10. So I far I have installed git, Apache, php, and phpmyadmin on it.
Now while trying to install python3-venv package (or any package for that matter) using sudo apt-get install python3-venv I am getting following error -
Selecting previously unselected package python-pip-whl. dpkg: unrecoverable fatal error, aborting: files list file for package 'git' contains empty filename E: Sub-process /usr/bin/dpkg returned an error code (2)
I am not able to install any package on my system due to this error. So far I tried deleting the git folder from /usr/bin/dpkg but it has not seemed to help.

Symfony4 cache clear throws You have requested a non-existent service "cache.proxy_factory"

I am deploying a Symfony4 app. After composer install cache clear throws the following error:
In ContainerBuilder.php line 1011:
You have requested a non-existent service "cache.proxy_factory".
The vendors installed correctly but I can't clear the cache.
vendors are installed with
sudo SYMFONY_ENV=prod composer install -d=/var/www/html --no-dev --no-interaction --optimize-autoloader --verbose --profile --prefer-dist
I discovered the error was caused by my temp fix of another bug, which I have resolved here - https://github.com/php-cache/issues/issues/137

How to fix "Cannot retrieve repository metadata (repomd.xml)" error installing Ripple - yum

I installed the Ripple rpm repo following documentation
(step 1)
$ sudo rpm -Uvh
https://mirrors.ripple.com/ripple-repo-el7.rpm
Then (step2) I run command:
sudo yum install --enablerepo=ripple-stable rippled
but I get the error:
https://mirrors.ripple.com/rpm/%24releasever/stable/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ripple-stable. Please verify its path and try again
Does anyone know how to resolve it?
That error message occurs when attempting to install the rippled package on an unsupported environment.
The rippled rpm package is currently only available for CentOS/RHEL 7 (and Ubuntu 15+ using alien)
You could try installing with:
sudo yum install --enablerepo=ripple-stable --releasever=el7 rippled
but YMMV.
\The URL is suspect - it says %24releasever which is URL-encoded $releasever which means your yum isn't filling in that blank, e.g. .../rpm/7/stable/.
Try hard-coding it in the file you can find in /etc/yum.repos.d/ that your step one installed.