Linux prompt Unable to locate package how to deal with?

  
                

When you modify the Linux software source, it prompts Unable to locate package error. What is the cause? How to solve it, the following small series will introduce you to the Linux under the Unable to locate package error how to solve, let's learn together.

just getting started with ubuntu friends may change source software by following the steps of some introductory article, but this time to install the software, then there will be unable to locate package error

For example: < Br>

The code is as follows:

username@ubuntu:~$ sudo apt-get install mysql-server mysql-client

[sudo] password for username:

Reading package lists… Done

Building dependency tree

Reading state information… Done

E: Unable to locate package mysql-server

E: Unable to Locate package mysql-client

username@ubuntu:~$

In fact, the problem was changed before the sudo apt-get install was executed, but the update was forgotten, so execute the following The command:

The code is as follows:

sudo apt-get update

This solves the problem ….

The above is the solution to the Unable to locate package error under Linux. It is mainly caused by forgetting the update. Just follow the method of this article to solve the problem easily. Try it out.

Copyright © Windows knowledge All Rights Reserved