Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    E: can't locate package

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    6 Posts 4 Posters 763 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      worldy
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8
        last edited by kiokoman

        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 be

        sudo 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"
        

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

        1 Reply Last reply Reply Quote 0
        • W
          worldy
          last edited by worldy

          @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!

          1 Reply Last reply Reply Quote 0
          • kiokomanK
            kiokoman LAYER 8
            last edited by

            how about

            sudo apt update
            

            ?

            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
            Please do not use chat/PM to ask for help
            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

            AKEGECA 1 Reply Last reply Reply Quote 1
            • AKEGECA
              AKEGEC @kiokoman
              last edited by

              @kiokoman said in E: can't locate package:

              how about

              sudo apt update
              

              ?

              Yes it works. 😊

              1 Reply Last reply Reply Quote 0
              • murago555M
                murago555
                last edited by

                Thanks for the good explanation. I had the same exact problem.

                Now i solved it 😊

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.