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

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?

Related

Elastic Beanstalk application deployment fails from EBExtension failing to install

We're using Elastic Beanstalk, (Postgres, Node.js running on 64bit Amazon Linux/3.2.0) and I woke up today to a Severe Health warning, causing all requests to respond with a 502 Bad Gateway. I haven't manually deployed since 4/9/19, so not sure why this happened all of a sudden.
The original error we got was:
Application deployment failed at 2019-04-18T15:39:51Z with exit status 1 and error: Package listed in EBExtension failed to install.
Yum does not have postgresql96-devel available for installation.
The repo I inherited is a little untidy, and I found instance of postgres96-devel in three different files:
.ebextensions/config.yml
.ebextensions/proxy.config
proxy.config
My config.yml file looks like:
packages:
rpm:
postgresql: https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-ami201503-96-9.6-2.noarch.rpm
yum:
postgresql96-devel: []
perl-CPAN: []
I noticed the rpm link returns a 404, and when looking for a better url, I saw this warning on the Postgres RPM page:
As of 15 April 2019, there is only one repository RPM per distro, and
it includes repository information for all available PostgreSQL
releases
What I've tried:
Redeploying the last successful build from 4/9/19
Changing the config.yml file to look like
// obviously I'm thrashing here
packages:
rpm:
postgresql: https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum:
postgresql11-devel: []
perl-CPAN: []
According to this AWS support article, I terminated the instance and let EB bring up a new instance.
With all these trials + redeploying, I still seeing errors like:
Application deployment failed at 2019-04-18T17:40:41Z with exit status 1 and error: Package listed in EBExtension failed to install.
Yum does not have postgresql96-devel available for installation.
Incorrect application version "app-v1_4_1-190418_084747" (deployment
98). Expected version "app-v1_4_1-190409_140626" (deployment 104).
Process default has been unhealthy for 42 minutes
(Target.FailedHealthChecks).
I'm not sure why it's complaining about postgres96-devel since I changed my config file to point to postgres11-devel.
Any ideas how to get things back up and running?
I was able to get everything back up and running. Here's what I think happened.
Our prod instances were running Linux 3.2. This did not contain the correct rpm package, so it relied on the rpm link from config.yml.
That url broke as of 4/15/19, so when EB went to deploy and pull that RPM, it failed, causing the entire deployment to fail.
The fix was to simply downgrade the yum package from postresql96-devel to postgres95-devel. Linux 3.2's yum directory contained postgres95-devel, so the deployment was able to skip going out to the internet to download the rpm (which at this point was broken).
You can install the PostgreSQL 9.6 using the amazon-linux-extra tool:
(if using docker, in a Dockerfile: )
RUN amazon-linux-extras install postgresql9.6

Error installing Gdata on Ubuntu for Odoo 8 (404 Not Found)

I'm trying to install Odoo 8 on Ubuntu 16.04 but i also seem to need to download and install Gdata module for that, according to a toturial found in this website: https://www.getopenerp.com/easy-odoo8-installation/
While typing this command line:
sudo wget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.tar.gz
I keep getting this error message :
--2018-10-30 20:00:23-- http://gdata-python-client.googlecode.com /files/gdata-2.0.17.tar.gz
Resolving gdata-python-client.googlecode.com (gdata-python- client.googlecode.com)... 64.233.166.82, 2a00:1450:400c:c06::52
Connecting to gdata-python-client.googlecode.com (gdata-python- client.googlecode.com)|64.233.166.82|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
018-10-30 20:00:24 ERROR 404: Not Found.
Does anyone have any clue on how to fix this?
This tutorial and Odoo8 both are obsolete. Current version is Odoo 12. Gdata url you are trying to access, no longer exists. However you can install gdata with Python pip.
`pip install gdata` // requires Python 2.5+
Or to upgrade, use:
`pip install -U gdata`
You need to skip rest of the instructions in STEP 8 of tutorial.

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.

yum update error on centos 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.

Installing Ruby 1.9.2 via rvm. Ubuntu 11.10 Problems

I have installed 1.8.3 version but when I trying to install Ruby 1.9.2 via rvm see some ERRORS .
I used Google, used many methods to solve this problem but I have not received any any answers. Can anybody help me?
I quote the part of code(in Terminal) below
unforbiddenyet#Trash-PC:~$ rvm install 1.9.2
0Warning: Failed to create the file yaml-0.1.4.tar.gz: Access is denied
Database file /usr/share/ruby-rvm/config/packages does not exist.
0Warning: Failed to create the file ruby-1.9.2-p290.tar.bz2: Denied Warning: Access
curl: (23) Failed writing body (0 != 2503)
There was an error, please check /usr/share/ruby-rvm/log//*.log. Next we'll try to fetch via http.
0Warning: Failed to create the file ruby-1.9.2-p290.tar.bz2: Denied Warning: Access
Failed writing body (0 != 2804)
There was an error, please check /usr/share/ruby-rvm/log//*.log
There has been an error while trying to fetch the source.
Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.
To create the packages, first install 1.8.7 and then to install the current version (currently 1.9.3):
$ rvm install 1.8.7
$ rvm install 1.9.3