Ask Question Asked 5 years, 9 months ago. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. In short - read the instructions for such packages and try to install them in way their authors suggest. Or at least determine package type and install it with appropriate package manager, in … Active 7 months ago. Type the following command to start the tool Installing jdk8 on ubuntu- “unable to locate package” update doesn't fix. Re: E: Unable to locate package tree Ubuntu 17.04 has reached end of life, best to start again with a currently supported release, preferably version 18.04 for maximum support period. The above commands works great on server. Ubuntu 18.04 Bionic – Unable to locate package when installing in command line I just started to install Ubuntu Server 18.04 Bionic Beaver on new servers. Viewed 118k times 24. 7. Learn more . I noticed an interesting thing – once the server is installed, I typically install additional software such as phpmyadmin or autossh. How to fix “Unable to locate package” while trying to install packages with apt or apt-get using GUI tools. But, if you have a gnome or kde or any other Ubuntu Linux desktop installed simply try a tool called software-properties-gtk. Done E: Unable to locate package php7.0 E: Couldn't find any package by regex 'php7.0' I have also tried installing php-fpm with the same result. I've been trying to install the jdk on my ubuntu after downloading it. The repositories for 17.04 have been archived hence the package manager will not find the "tree" package where it expects it to be. Software tab. I faced same issue but fix it by the changing the package file section command. My sources.list looks like this This is the unofficial mongodb package provided by Ubuntu and it is not maintained by MongoDB and conflict with MongoDB’s offically supported packages. The whole step that i followed was: At first try with this command: sudo apt-get install -y mongodb.