E: can't locate package
-
I installed a virtual router in an ESXi environment, I created 2 network cards. I am connected to the internet. I placed a webserver (ubuntu server) in my lan, this server also has internet. However, if I want to install something (mysql) I get the message that E: can't find the location of the package. Do I have to make a port forward or add any nat rules?
-
if it is LAN and not OPT1 you don't need any firewall rules / nat
check your ubuntu
https://itsfoss.com/unable-to-locate-package-error-ubuntu/the package is mysql-server or mysql-client
the command would besudo apt install mysql-server
or
sudo apt install mysql-client
and not
sudo apt install MySQL <- this will not work and lead to "E: Unable to locate package"
-
@kiokoman said in E: can't locate package:
sudo apt install mysql-server
Thanks for the fast reply! I tried this already no succes :(
BTW I edited the 01-netcfg.yaml under /etc/netplan to
I am unable to download new packages: for example mysql or php after editing netplan file to:
network:
version: 2
renderer: networkd
ethernets:
ens33:
addresses:
- 10.0.0.10/24
gateway4: 10.0.0.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]I can ping to 8.8.8.8 and google.nl. When I try apt install mysql-server -y I get the following message: E: Unable to locate package mysql-server.
Thank you!
-
how about
sudo apt update
?
-
-
Thanks for the good explanation. I had the same exact problem.
Now i solved it