Questions tagged as ['amazon-ec2']

Amazon Elastic Compute Cloud (EC2) is a cloud-based computing platform.
Score: 0
Unable to update ubuntu 20.04 on EC2 owing to timeout
eg flag

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 ...
Score: 0
How do I upgrade an existing EC2 instance from Ubuntu 16.04 to 18.04 through CLI with custom Ubuntu 18.04 image?
cn flag

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 ...

Score: 0
cyberrspiritt avatar
Temporary failure in Name Resolution PHP-Ubuntu
in flag

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 ...

Score: 0
quintumnia avatar
Why website keeps on asking logins whenever I visit the site or refresh the site pages?
us flag

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 ...

Score: 0
weig avatar
Easiest way to setup Ubuntu as a VPN server (L2TP) for a home router to connect
cn flag

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 ...
Score: 0
Anonymous shooter avatar
Install apache2 on ubuntu aws EC2 instance via scripit (useing terraform)
am flag

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 ...
Score: 0
sandhatara avatar
configuring VNC server: vim ~/.vnc/xstartup command shows ' No such file or directory'
us flag

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'.

Score: 0
Raj basnet avatar
Error ubuntu server 18.04.4 "apt update" unable to update server repository
si flag

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                                              ...
Score: 1
akh22 avatar
Issue upgrading R 4.05 to 4.1 in Focal 20.04 on AWS EC2
ma flag

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 ...
Score: 0
Aleksandr Petrov avatar
Please help organise ubuntu desktop with terminal on ec2 instance
it flag

I'm new to linux and started to learn. What i did:

  1. Created EC2 ubuntu instance
  2. Installed ubuntu desktop by following this instruction: https://ubuntu.com/tutorials/ubuntu-desktop-aws
  3. Connected via vnc through xTerm
  4. There is no gnome terminal on ubuntu desktop at all, even though I have installed it
  5. Installed Guake terminal
  6. When I press "-" in terminal then square appears. When I press letter "x" Guake ...
Score: 1
Can't ping after adding secondary network interface in aws ec2
ec flag
Cal

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 ...