unable to to install Varnish 6.0 on AmazonLinux - varnish

I am trying to install varnish 6 image on amazon linux and ubuntu but unfortunately I am not getting successful.
I have followed both the script and manual methods at https://packagecloud.io/varnishcache/varnish60/install#bash-rpm without success. See below the output. I am getting similar output on Ubuntu as well
[root#aaa00web32 yum.repos.d]# curl -s https://packagecloud.io/install/repositories/varnishcache/varnish60/script.rpm.sh | sudo bash
Detected operating system as amzn/2018.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/varnishcache/varnish60/config_file.repo?os=amzn&dist=2018&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: ovl, priorities
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.5 kB 00:00:00
nt-local | 2.9 kB 00:00:00
varnishcache_varnish60-source/signature | 836 B 00:00:00
varnishcache_varnish60-source/signature | 951 B 00:00:01 !!!
(1/6): amzn-main/latest/group_gz | 4.4 kB 00:00:00
(2/6): amzn-updates/latest/group_gz | 4.4 kB 00:00:00
(3/6): nt-local/primary_db | 59 kB 00:00:00
(4/6): amzn-updates/latest/primary_db | 351 kB 00:00:00
(5/6): amzn-updates/latest/updateinfo | 502 kB 00:00:00
(6/6): amzn-main/latest/primary_db | 4.0 MB 00:00:01
varnishcache_varnish60-source/primary | 175 B 00:00:01
Package python26-pygpgme-0.3-9.12.amzn1.x86_64 already installed and latest version
Nothing to do
Installing yum-utils...
Loaded plugins: ovl, priorities
Package yum-utils-1.1.31-40.29.amzn1.noarch already installed and latest version
Nothing to do
Generating yum cache for varnishcache_varnish60...
The repository is setup! You can now install packages.
[root#aaa00web32 yum.repos.d]# yum install varnish
Loaded plugins: ovl, priorities
No package varnish available.
Error: Nothing to do
[root#aaa00web32 yum.repos.d]# yum update
Loaded plugins: ovl, priorities
No packages marked for update
[root#aaa00web32 yum.repos.d]#
Anyone has any idea what could be the issue here?

varnish 6.0 not support amazon linux
in [https://packagecloud.io/varnishcache/varnish60/install#bash-rpm][1] you could see in the install script
else
aws=`grep -q Amazon /etc/issue`
if [ "$?" = "0" ]; then
dist='6'
os='aws'
else
unknown_os
fi
amazon linux set dist to 6
in varnish download page [https://packagecloud.io/varnishcache/varnish60lts?page=1][2] you can see that there is no el6
same occur if you search for el6 tag [https://packagecloud.io/app/varnishcache/varnish60/search?dist=el%2F6][3]

Related

Building GCC 11.2 on Amazon Linux 2

While attempting to build GCC version 11.3 for Linux-x86_64 (with multilib and multiarch support enabled), I am getting the following error:
In file included from /usr/include/features.h:447,
from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/../gcc/tsystem.h:87,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/generic-morestack.c:32:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
7 | # include <gnu/stubs-32.h>
From what I can tell this means that I don't have glibc-devel (32-bit version) installed; however when attempting to install it via YUM I get the following output:
$ sudo yum install glibc-devel.i686
Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
firefox | 2.9 kB 00:00:00
workspaces-internal-dependencies | 2.2 kB 00:00:00
No package glibc-devel.i686 available.
I am using an Amazon Linux Workspace, any assistance would be helpful.
Maybe you are using centos so you need to go to chrome and search for "How to install glibc-devel.i686 for centos".

Can't install nodejs on CentOS 7 using epel-release

So something strange happened this week and I'm not sure if it's only me. When I create a new EC2 instance with CentOS 7 from the Marketplace ( CentOS 7 (x86_64) - with Updates HVM ) and I try to install nodejs I am getting the error that nodejs package is not found. Of course prior to installing nodejs I am installing epel-release as nodejs is a part of this package.
Error output bellow:
[root#ip-172-31-15-245 centos]# yum install epel-release -y`
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: download.cf.centos.org
* extras: download.cf.centos.org
* updates: download.cf.centos.org
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/4): extras/7/x86_64/primary_db | 243 kB 00:00:00
(2/4): base/7/x86_64/group_gz | 153 kB 00:00:00
(3/4): updates/7/x86_64/primary_db | 13 MB 00:00:00
(4/4): base/7/x86_64/primary_db | 6.1 MB 00:00:01
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================================================================================
Installing:
epel-release noarch 7-11 extras 15 k
Transaction Summary
==================================================================================================================================================================================================================
Install 1 Package
Total download size: 15 k
Installed size: 24 k
Downloading packages:
warning: /var/cache/yum/x86_64/7/extras/packages/epel-release-7-11.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for epel-release-7-11.noarch.rpm is not installed
epel-release-7-11.noarch.rpm | 15 kB 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security#centos.org>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-7.1908.0.el7.centos.x86_64 (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-11.noarch 1/1
Verifying : epel-release-7-11.noarch 1/1
Installed:
epel-release.noarch 0:7-11
Complete!
`[root#ip-172-31-15-245 centos]# yum install nodejs`
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 32 kB 00:00:00
* base: download.cf.centos.org
* epel: mirror.23m.com
* extras: download.cf.centos.org
* updates: download.cf.centos.org
epel | 4.7 kB 00:00:00
(1/3): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(2/3): epel/x86_64/group_gz | 96 kB 00:00:00
(3/3): epel/x86_64/primary_db | 7.0 MB 00:00:00
No package nodejs available.
Error: Nothing to do
Does anyone else experience the same issue?
Tried using nvm but does suit me so I'm looking for any advice?
Some other users have been having problems with EPEL and Node.js on CentOS 7. Can you download the tarball and try to install it manually (I would use the default user's account instead of root, though):
NOTE - Tested on CentOS 7.9
wget https://nodejs.org/dist/latest/node-v17.4.0-linux-x64.tar.gz -P /home/<default user>/Downloads
cd /home/<default user>/Downloads
sudo tar -C /usr/local --strip-components 1 -xzf node*.tar.gz

netstat/net-tools package not found on RHEL

I can't install netstat on my redhat server, I can't even find which packet provides it, and when I go through net-tools package installation I can't find the net-tools package as well.
Bellow is what I tried
[root#njwvms04 ~]# netstat -a
-bash: netstat : commande introuvable
[root#njwvms04 ~]# yum install netstat
Modules complémentaires chargés : enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager, vdsmupgrade, versionlock
Excluding 92 updates due to versionlock (use "yum versionlock status" to show them)
Aucun paquet netstat disponible.
Erreur : Rien à faire
Uploading Enabled Repositories Report
Modules complémentaires chargés : product-id, subscription-manager, versionlock
Unable to upload Enabled Repositories Report
[root#njwvms04 ~]# yum whatprovides */netstat
Modules complémentaires chargés : enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager, vdsmupgrade, versionlock
Excluding 92 updates due to versionlock (use "yum versionlock status" to show them)
No matches found
Uploading Enabled Repositories Report
Modules complémentaires chargés : product-id, subscription-manager, versionlock
Unable to upload Enabled Repositories Report
[root#njwvms04 ~]# yum install net-tools
Modules complémentaires chargés : enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager, vdsmupgrade, versionlock
centos-opstools-release | 2.9 kB 00:00:00
centos-sclo-rh-release | 3.0 kB 00:00:00
ovirt-4.1-centos-qemu-ev | 2.9 kB 00:00:00
ovirt-4.1-epel/x86_64/metalink | 17 kB 00:00:00
ovirt-4.1-patternfly1-noarch-epel | 3.0 kB 00:00:00
ovirt-4.2-centos-gluster312 | 2.9 kB 00:00:00
ovirt-4.2-centos-opstools | 2.9 kB 00:00:00
ovirt-4.2-centos-ovirt42 | 2.9 kB 00:00:00
ovirt-4.2-centos-qemu-ev | 2.9 kB 00:00:00
ovirt-4.2-epel/x86_64/metalink | 17 kB 00:00:00
ovirt-4.2-virtio-win-latest | 3.0 kB 00:00:00
sac-gdeploy | 3.0 kB 00:00:00
virtio-win-stable | 3.0 kB 00:00:00
Excluding 92 updates due to versionlock (use "yum versionlock status" to show them)
Aucun paquet net-tools disponible.
Erreur : Rien à faire
Uploading Enabled Repositories Report
Modules complémentaires chargés : product-id, subscription-manager, versionlock
Unable to upload Enabled Repositories Report
Here is my distribution configuration :
[root#njwvms04 ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="7.7"
VERSION_ID="7.7"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Red Hat Virtualization Host"
VARIANT_ID="ovirt-node"
PRETTY_NAME="Red Hat Virtualization Host 4.3.7 (el7.7)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.7:GA:hypervisor"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
# FIXME
REDHAT_BUGZILLA_PRODUCT="Red Hat Virtualization"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.7
REDHAT_SUPPORT_PRODUCT="Red Hat Virtualization"
REDHAT_SUPPORT_PRODUCT_VERSION=7.7
What i think is all of the repositories you have enabled might not have the package net-tools, so use all centos global repositories and enable them, then run the commands
# yum -y install epel-release
# yum clean all
# yum update all
# yum install -y net-tools
This will only work if you epel repository is configures properly.

Yum Install is taking forever to read default repositories in Amazon Linux

[root#ip-172-31-27-95 rpm]# yum -d 10 install munin-node
Loading "priorities" plugin
Loading "update-motd" plugin
Loading "upgrade-helper" plugin
Config time: 0.007
Yum version: 3.4.3
rpmdb time: 0.000
Setting up Package Sacks
amzn-main/latest
| 2.1 kB 00:00
amzn-main/latest/group
| 35 kB 00:00
amzn-main/latest/primary_db
| 3.6 MB 00:00
amzn-updates/latest
| 2.3 kB 00:00
amzn-updates/latest/group
| 35 kB 00:00
amzn-updates/latest/updateinfo
| 384 kB 00:00
amzn-updates/latest/primary_db
| 167 kB 00:00
pkgsack time: 0.767
I'm trying to install munin-node into my Amazon Linux. Unfortunately every time I run yum install munin-node, it'll get stuck on reading the repositories as shown in the snippet above.
I already tried the following troubleshooting:
Kill yum process
rpm --rebuilddb
rm /var/run/yum.pid
yum clean all
I had the same problem so I checked for any shared file lock using:
lslocks
and found out that 3 processes where acquiring the same system lock files
/var/lib/rpm/.dbenv.lock
it was:
rpm
yum
package-cleanup
so I deleted the file:
sudo rm /var/lib/rpm/.dbenv.lock
tried to install again and it worked!!!
Apparently all I needed was to reboot the server and yum install works fine again. Not sure what went wrong though.
I solved this by disabling the repo directly. On my case were ius.repo and collaboraoffice.com_repos_CollaboraOnline_CODE-centos7.repo which were causing the yum execution took so long to finish.
So, using vim editor I edited the .repo file directly, like so:
vi /etc/yum.repos.d/ius.repo
then set
enabled=1
to
enabled=0
And I have disabled the collaboraoffice.com_repos_CollaboraOnline_CODE-centos7.repo the same way like above.
After that, I executed
yum update
And it turns out OK.
Hope this helps someone.

How to install GitLab on CentOS 6 running WHM?

I am trying to install GitLab on my dedicated server with no luck.
Server info:
CENTOS 6.7 x86_64 standard
WHM 11.52.1 (build 2)
I tried this guide, but I keep getting the following error:
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.ca.planethoster.net
* epel: mirrors.mit.edu
* extras: centos.mirror.iweb.ca
* updates: centos.mirrors.atwab.net
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.6.6-6.el6_7.1 will be installed
--> Processing Dependency: mysql-libs for package: 2:postfix-2.6.6-6.el6_7.1.x86_64
--> Finished Dependency Resolution
Error: Package: 2:postfix-2.6.6-6.el6_7.1.x86_64 (updates)
Requires: mysql-libs
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
When I run the following command:
sudo yum install postfix
I get the following error:
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 12 kB 00:00
* base: centos.mirror.iweb.ca
* epel: mirrors.mit.edu
* extras: centos.mirrors.atwab.net
* updates: centos.mirror.netelligent.ca
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.8 MB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.6 MB 00:00
virtualbox/signature | 198 B 00:00
virtualbox/signature | 951 B 00:00 ...
No package mysql-libs available.
Error: Nothing to do
When I run the following command:
sudo yum install mysql-libs
What I eventually did was skip the installation of postfix. I skipped it like so:
sudo yum install --skip-broken curl openssh-server openssh-clients postfix cronie
Then I edited the gitlab.rb config file using something like nano:
nano /etc/gitlab/gitlab.rb
and changed the external_url' and added to it a random unused port number:
external_url 'http://example.com:8443/'
then run
sudo gitlab-ctl reconfigure
for the change to take effect.
Voila it works.
It looks like a common problem with CentOS. Similar question has been answered here on fixing the yum install postfix and missing mysql-libs.
NOTE: Since I can't comment I will provide this as an answer and update based on any comments.
I suggest you use the Bitnami one-click install GitLab. It's very easy to install GitLab.
More info : https://bitnami.com/stack/gitlab
and Wiki is : https://wiki.bitnami.com/Applications/BitNami_GitLab#How_to_change_the_default_address_for_GitLab.3f

Resources