-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not able to install apache2 on ubutu 20.04 LTS #10221
Comments
Hi @vkplays , We will investigate about this issue and update you soon. Thank you ! |
@vkplays - Try this > sudo apt-get update |
@vkplays - Try these below workarounds -
Now run sudo apt-get update command. or try this below sed command workaround option
sudo sed -i.bak -r 's/(archive|security).ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list After this, sudo apt-get update should work . And once you do this you should run the below command sudo apt-get install update-manager-core; do-release-upgrade Please let me know if it works for you. |
Note, this file is written by cloud-init on first boot of an instance See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to Major bug fix updates produced after the final release of the N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu N.B. software from this repository may not have been tested as deb http://azure.archive.ubuntu.com/ubuntu/ jammy-security main restricted there is no link like http://security.ubuntu.com/ubuntu or http://security.ubuntu.com/ubuntu/ this issue has appeared today in microsoft azure yesterday everything was fine. |
@vkplays - try to run this below command . sudo apt-get update --fix-missing and follow the below link - This could be caused by a number of factors, such as network connectivity issues or firewall rules that are blocking access to the Ubuntu mirrors. Check your network connectivity: Make sure that your Azure VM has a stable internet connection and that you can access other websites. Check your firewall rules: Make sure that your Azure VM's firewall is not blocking access to the Ubuntu mirrors. You can check this by running the following command: sudo ufw status Check your DNS settings: Make sure that your Azure VM is configured to use the correct DNS servers. You can check this by running the following command: cat /etc/resolv.conf Check your proxy settings: Make sure that your Azure VM is not configured to use a proxy server that is blocking access to the Ubuntu mirrors. You can check this by running the following command: Check the Azure VM's network security group: Make sure that the Azure VM's network security group is configured to allow traffic to the Ubuntu mirrors. Check the Azure VM's network interface: Make sure that the Azure VM's network interface is configured to allow traffic to the Ubuntu mirrors. |
@vkplays - Can you try again running below command sudo apt-get update Please confirm if you can able to install apache2 on ubuntu 20.04 LTS version. |
Can i Share Vps's credentials and i will change it later ? |
@vkplays - No please don't share. Please try once with the below command again - sudo apt-get update --fix-missing |
Hi, |
@ijunaidm the issues is resolved now maybee the issues was from azure only. |
@vkplays - Okay. Thank you for confirming. I will close the ticket. If you face any such issues related to images in future please reach out to us. Thank you. |
Description
Platforms affected
Runner images affected
Image version and build link
20_04-lts-gen2
Is it regression?
cause not found.
Expected behavior
it was expected to install apache2 using cli
Actual behavior
not able to fetch azure package page
Repro steps
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libjansson4
liblua5.2-0 ssl-cert
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser openssl-blacklist
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
libjansson4 liblua5.2-0 ssl-cert
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 1875 kB of archives.
After this operation, 8121 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 libapr1 amd64 1.6.5-1ubuntu1 [91.4 kB]
Get:2 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libaprutil1 amd64 1.6.1-4ubuntu2.2 [85.1 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-4ubuntu2.2 [10.5 kB]
Get:4 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libaprutil1-ldap amd64 1.6.1-4ubuntu2.2 [8752 B]
Get:5 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 libjansson4 amd64 2.12-1build1 [28.9 kB]
Get:6 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 liblua5.2-0 amd64 5.2.4-1.1build3 [106 kB]
Ign:7 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-bin amd64 2.4.41-4ubuntu3.20
Ign:8 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-data all 2.4.41-4ubuntu3.20
Ign:9 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-utils amd64 2.4.41-4ubuntu3.20
Ign:10 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2 amd64 2.4.41-4ubuntu3.20
Get:11 http://azure.archive.ubuntu.com/ubuntu focal/main amd64 ssl-cert all 1.0.39 [17.0 kB]
Err:7 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-bin amd64 2.4.41-4ubuntu3.20
404 Not Found [IP: 40.81.81.149 80]
Err:8 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-data all 2.4.41-4ubuntu3.20
404 Not Found [IP: 40.81.81.149 80]
Err:9 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-utils amd64 2.4.41-4ubuntu3.20
404 Not Found [IP: 40.81.81.149 80]
Err:10 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2 amd64 2.4.41-4ubuntu3.20
404 Not Found [IP: 40.81.81.149 80]
Fetched 347 kB in 2s (190 kB/s)
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/a/apache2/apache2-bin_2.4.41-4ubuntu3.20_amd64.deb 404 Not Found [IP: 40.81.81.149 80]
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/a/apache2/apache2-data_2.4.41-4ubuntu3.20_all.deb 404 Not Found [IP: 40.81.81.149 80]
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/a/apache2/apache2-utils_2.4.41-4ubuntu3.20_amd64.deb 404 Not Found [IP: 40.81.81.149 80]
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/a/apache2/apache2_2.4.41-4ubuntu3.20_amd64.deb 404 Not Found [IP: 40.81.81.149 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The text was updated successfully, but these errors were encountered: