Questions tagged as ['amazon-ec2']

I've got what could either be a problem with an EC2 instance or with ubuntu 20.04.
When I run sudo apt-get update
I eventually get:
Failed to fetch http://eu-west-
2.ec2.archive.ubuntu.com/ubuntu/dists/focal/InRelease Could not connect to eu-
west-2.ec2.archive.ubuntu.com:80 (34.241.117.189), connection timed out Could not
connect to eu-west-2.ec2.archive.ubuntu.com:80 (54.246.214.20), connection ...

How do I upgrade an existing EC2 instance from Ubuntu 16 to 18 through CLI/ansible with our own Ubuntu 18.04 image?
Tried below steps and able to upgrade from 16 to 18.04 but it used ubuntu common image.
$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade
$ sudo apt-get autoremove
$ sudo apt install update-manager-core
$ sudo do-release-upgrade
But the requirement is to upgrade to 18.04 using cu ...
I keep getting this error very frequent:
Severity: Warning --> mysqli::real_connect(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
This issue gets resolved only after Server restart. Considering this happens over a live server having millions of requests daily, restarting isn't a best option.
[EDITED] I'm using Ubuntu 18.04 and connecting to an Aurora Clus ...
I have just deployed my website files in
"var/www/html/site-files"
running no ubuntu server (Zend-server) via Amazon Web Service(AWS) ec2 instance but whenever I attempt to load or type the domain address of the website in any browser, a pop up window shows and say something like
"The server http://websitename.com:10081 requires authentication....",
and below it there is the username and password ...
I'm trying to create/deploy a VPN to solve a connection issue regarding a game I'm playing (Xbox). For this, I'm setting up a VPN on a EC2 machine on AWS and I want to connect from a home router. I have tried VPN services (ExpressVPN) but they offer 2 alternatives.
- OpenVPN -> I cannot connect from my router (TP-LINK AC 1750).
- L2TP/ipsec -> Works, but does not offer support on the required region ...
I try to create an ubuntu instance via terraform after install I want to execute the script which is referred to install apache2 here is my script
app1-install.sh
#! /bin/bash
sudo apt update
sudo apt install apache2-bin
# sudo systemctl enable apache2
# sudo service apache2 start
sudo echo '<h1>Welcome to my terraform demo - APP-1</h1>' | sudo tee /var/www/html/index.html
sudo mkdir /va ...
I have started learning Linux only a couple of days ago. Tried to install ubuntu desktop in my ubuntu 18.04 EC2 instance, but failed in a stage with this command vim ~/.vnc/xstartup. it says 'No such file or directory'.
When I try to update Ubuntu Server 18.04.4, a repository returns an error and I am unable to update the server.
root# apt update
Err:1 https://artifacts.elastic.co/packages/7.x/apt stable InRelease
Unknown error executing apt-key ...
I am trying to upgrade R 4.0.5 to R 4.1 with an update instruction by Johannes Ranke on cloud-R and I did as follows;
sudo nano /etc/apt/sources.list
and added;
deb http://cloud.r-project.org/bin/linux/debian buster-cran40/
and commented out;
http://us-east-2.ec2.archive.ubuntu.com/ubuntu/ focal main restricted
Then,
sudo apt update
Hit:1 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal-updates I ...
I'm new to linux and started to learn. What i did:
- Created EC2 ubuntu instance
- Installed ubuntu desktop by following this instruction: https://ubuntu.com/tutorials/ubuntu-desktop-aws
- Connected via vnc through xTerm
- There is no gnome terminal on ubuntu desktop at all, even though I have installed it
- Installed Guake terminal
- When I press "-" in terminal then square appears. When I press letter "x" Guake ...

Ubuntu version 20.04.
First we created a 2nd private IP on the only (primary) network interface. Both private IP addresses could be pinged. Now the instance has 2 private IP addresses, 1 public IP address.
Then we attached a secondary network interface with two private IP addresses (no public IP address) and attached to the instance, then added .yaml configuration, following this article. Now the i ...