Cannot access internet from my Ubuntu 16.04 AWS EC2 Server after some security updates using Webmin interface

Riajul

All was working perfectly until the update. Today I thought that some security updates of packages will be better for our server security. So, I have updated only security updates using Webmin(webmin.com) after all updates completed without any errors and automatically rebooted our server.

after that when I tried to run sudo command(was 'sudo cp') but it was showing error like cannot find ip-172-1-1-1(IP of ec2) host then i solved that by adding a line: 127.0.1.1 ip-172-1-1-1.

then when tried to run sudo certbot --apache then it was showing error: command not found! (I was shocked because previously it was installed and working perfectly without any error). and then i have noticed that my login welcome of Ubuntu has changed previously there were an update notice for Ubuntu 18 and now there is showing an error: Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings and then i tried ping google.com and it is saying now: ping: unknown host google.com

*** Please help me, I'm not very familiar with Networking and System Administration, I just learned to do necessary things in order to deploy my client Applications(Laravel, Slim, PHP etc) such as: apache2, certbot(LetsEncrypt), php config, webmin, roundcube, service: start, restart, reload etc commands.

Riajul

The Internet and Email Problem has been solved by Updating Ubuntu OS 16 to 18 and all it's packages using the command sudo apt-get upgrade. To update OS first I needed internet access so I followed @Lewis Smith comments:

comment: Edit resolve.conf as root and add nameserver 8.8.8.8 nameserver 8.8.4.4 on separate lines.

My Comment:

adding nameserver does fix internet access problem but still, email service does not work. using Roundcube, Postfix, Amazon SES previously mail was working perfectly but now no mail is being sent to the destination(no error is showing in Roundcube).

Although I couldn't find resolve.conf file in etc folder so edited resolv.conf. and then some hours later I thought to try updating the OS and its packages. and this try has worked!

The command I used: sudo apt-get upgrade

I have figured out the problem or mistake I have made:

While I was using Ubuntu xenial version 16 I updated security updates of bionic that is Ubuntu 18, that was my mistake and so foolish I didn't know the Ubuntu version nickname. So the bionic security updates wasn't compatible with Ubuntu xenial 16 that was the main reason of all problems happened to me.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Cannot access http server (apache2 on Webmin) from WAN

Using AWS CLI from EC2 instance without internet access

Ubuntu Server - “Virtual” Network Interface with Internet Access

Ubuntu Server - "Virtual" Network Interface with Internet Access

Access JIRA over the internet (remotely) hosted by ec2 aws (windows server 2008)

Ubuntu server can SSH but cannot access internet

How to access to a Parse Server running on AWS EC2 Ubuntu's localhost?

Access framebuffer /dev/fb0 in AWS EC2 (Ubuntu Server)

Cannot list or download files from AWS EC2 FTP server from Heroku app

Will updates and security updates update my Ubuntu version?

How to deny all outbound traffic from an AWS EC2 Instance using a Security Group?

Cannot access S3 via aws cli from EC2 instance

Ubuntu 16,04 GUI only updates when switching to and from tty

How do I secure access to a AWS classic EC2 machine from my LAN

AWS EC2 Security group access itself via HTTP

AWS Lambda to access EC2 with appropriate security group settings

Configure a server with Ubuntu 18 to access it from internet

Not able to connect to AWS DocumentDB from my ubuntu EC2 machine

Failing to access a Godaddy hosted MySQL server from AWS EC2

How to run a Python code on AWS EC2 and write a csv file from the server to my local machine?

security of hosting a RESTful API server on AWS Beanstalk or EC2

puppeteer works locally but results in cloudflare protection when running from aws ec2 ubuntu server

Can't connect to AWS EC2 instance from internet

Webmin not showing running processes after upgrade to Ubuntu Server 20.04 from 18.04

How do I resize this AWS EC2 ubuntu 18 instance from 16GB to 100GB

Prevent anyone to access my EC2 instance content on AWS

cannot access AWS redshift (EC2-classic) from SQL workbench in local computer despite all open Security Group

access EC2 Ubuntu instance's localhost address from local web browser using port forwarding

How to ping from EC2 instance to on-premises Windows Server using AWS VPN?