Connect with us


[Solved] “E: Unable to locate package” Error On Ubuntu



If you are looking for a fix to get rid of the “Unable to locate package” error on your Linux device, then you have come to the right place.

When you want to install any package on Ubuntu Linux, it identifies, locates, and installs the package. But, in some cases, it couldn’t locate the package or couldn’t identify it due to some issue. That’s when you will get the “Unable to locate package” error and the installation will not be successful.

unable to locate package

There can be various reasons why this error is appearing. Here, we will show you some of the most effective and useful methods that help in resolving the Unable to locate package error on Ubuntu.

Unable To Locate Package

unable to locate package error

To install any package on Ubuntu, you must use the apt_get or apt commands. Starting with the first step, this is how you give the command to install the package on Ubuntu.

sudo apt install package_name.

Most of the time, the installation is done successfully without any interruption. But, if due to any reason the installation was unsuccessful, you will get a message of error code like this.

  • sudo apt-get install package-name
  • Reading package lists… Done
  • Building dependency tree
  • Reading state information… Done
  • E: Unable to locate package package-name

This error code means that the Linux can’t locate the package that you are trying to install. There can be a list of reasons for your package to not be located. However, you can fix it in no time.

How To Fix Unable To Locate Package Error On Ubuntu

Let’s take a look at how you can easily detect and fix the problem that is causing the package error on Ubuntu. Here, we will show you some useful and easy methods with detailed explaining steps so that you can easily understand and implement them.

Use Correct Package Name

Since Linux works with commands, you must have known already how important it is to enter correct commands. If there was a single mistake even with the letters or characters, you can get an error code.

Therefore, the first thing you must check when your OS can’t locate the package that you are installing is the package name. Make sure that you are using the correct name of the package.

Update Repository Cache

To update the repository cache, the only thing you have to do is giving a single command. Just type the command below and press Enter.

sudo apt update

But, before updating the system, you must ensure to follow the given steps below.

  • Go to the “Ubuntu Software” tab.

unable to locate package ubuntu

  • Enable the first four checkboxes on this tab.
  • Now, go to the Updates tab and enable the four repository boxes.

ubuntu unable to locate package

  • Next, click on the “Close” button.
  • Then, click on the “Reload” button to update the cache.

Unable to locate package error on Ubuntu

  • Finally, update the system.

Or simply, you can run the following 4 commands to add the repositories.

  1. sudo add-apt-repository main
  2. sudo add-apt-repository universe
  3. sudo add-apt-repository restricted
  4. sudo add-apt-repository multiverse

Once you are done with adding the repositories, run the following two commands to update the system.

sudo apt-get update
sudo apt-get upgrade

Check The Compatibility

If checking the package name and updating are not helping to get rid of the error, then the reason can be this one.

If the package that you are trying to install is not compatible with the Linux version you use, this can also lead to errors in locating the package. Therefore, it is necessary to know if your package and the Ubuntu version are compatible or not.

  • Firstly, run this command “lsb_release -a” on your Ubuntu device to know your device version.
  • Your OS version and codename will be displayed on the screen. Note down the codename.
  • Now, it’s time to know the package codename that you want to install.
  • Go to website.
  • Scroll down and find the Search section.

how to fix ubuntu unable to locate package

  • In the “Keyword” column, enter your package’s name.
  • In the “Distribution” option set it as your Ubuntu’s codename.
  • Keep the section as “any” and press Enter.

You will get the results if your device OS and the package version are suitable or not. If they aren’t compatible, then you might switch to a package that suits your Ubuntu version. But, if they are clearly compatible and shows a match, then try to update once with this command:

sudo apt update

Now try to install again. If you still get the error message, then try the next method.

Recommended Articles:

Check If You Are Using Active Ubuntu Release

It is important to check whether the Ubuntu you are using is active or dead. You might have already known that there are two kinds of major Ubuntu releases.

The Normal release gives service for nine months whereas the Long term support release gives service for five years. Maybe your Ubuntu got outdated which is the reason why it is showing errors when you want to install a package.

Here is how to check your Ubuntu release is supported or not. Just run this command:

hwe-support-status  –verbose

check if you are using active ubuntu release

You will get the details about your Ubuntu is supported or not. If your version is expired, then switch to an active version to get rid of this issue.

But, what if your Ubuntu version is supported, but still showing “Unable to locate package” errors.

If Nothing Works

Well, most probably the above methods will help you to get rid of the unable to locate package error. But, unfortunately, if none of the above solutions fixed your issue, then you can take help from the Linux software customer helpline. Write an e-mail or contact them on the phone. They will tell you a helpful fix for solving this problem.


We hope this article helped you to get rid of the annoying error code: Unable To Locate Package error on your Linux device. This error can trigger due to incorrect package names, compatibility issues, or even the outdated OS version. Hence, try the above methods that we have made as easy as possible for you to understand. For more related articles, visit our website Tech 170.

Continue Reading
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

How to

How to Bypass iCloud Activation Lock for Free (New Working Methods)




Bypass iCloud Activation Lock: iCloud lock or the activation lock is the security measure that protects the iPhone by finding my iPhone system. Basically, it is one of the security systems which protects your iPhone if any unauthorized accessing attempt happens and it locks down the device.

The best and easiest way to unlock your device is to enter the Apple id and the password. After entering the Apple id or password you will need to choose between two options. That is, either you can delete all the data of your iPhone or you can turn off the find my iPhone feature.

How to Bypass iCloud Activation Lock (New Working Methods)

But in any case, you have bought any second-hand iPhone, then probably you will not have the Apple id or password. In such cases, you can use the below-mentioned methods to “Bypass iCloud Activation Lock”. We have given some effective methods here to bypass the iCloud activation lock easily.

How to Bypass iCloud Activation Lock for Free

Use the following methods to bypass the iCloud lock easily. Read the instructions carefully before applying them to your iPhone.

Guide to Bypass iCloud Activation Lock with DNS

This method doesn’t require any unlocking tool and is completely free of cost to perform. By changing the DNS settings of your iPhone, you can bypass the iCloud activation lock of your device. There is not a guarantee that this method will work for sure to bypass your iCloud lock. In that case, you can also use any other method to bypass the iCloud lock.

  • Restart your iPhone in which you want to bypass the iCloud lock.
  • Now start the setup process of the iPhone where you need to select the language and the country.
  • Once you enter the language and the country, on the next page it will ask you to choose a Wi-Fi network.
  • On that page, you will get to see an “i” just decide the Wi-Fi network which is available to connect.

Guide to Bypass iCloud Activation Lock with DNS

  • Tap on that “i” and you will get to see the DNS option on your screen.
  • Now enter the following DNS on that box, the DNS is depending on the location you are currently trying to bypass the iCloud lock. Here are the listed DNS available.
    • Asia: 155.220.58
    • Europe: 155.28.90
    • The USA or North America: 154.51.7
    • Rest of the World: 109.17.60
  • Now tap on the back option and tap on the “Activation Help” link.

After completing this procedure, you will receive a message “You have successfully connected to my server”. That’s all. You have successfully completed the process to “Bypass iCloud Activation Lock” without paying anything. Unfortunately, if this method didn’t work, then try the next method that will require you to pay.

Guide to Bypass iCloud Activation Lock Using Paid Tool

Use this following method and pay for it to bypass the iCloud activation lock using the online unlock tool. This is a paid website so you have to buy their services. We recommend the “IMEIDoctor” website to “Bypass iCloud activation lock” on your iPhone. The cost can range from $25 to $40 based on the services and how quickly you want to bypass the iCloud activation lock of your iPhone.

Guide to Bypass iCloud Activation Lock Using Paid Tool

  • Open any internet browser from any other device and visit the website.
  • Now all you have to do is to enter the model of your iPhone and the IMEI for the serial number of your device into that website.
  • In case you don’t know the IMEI number of your iPhone when you need to dial *#06# on your iPhone to get the IMEI number of your iPhone.
  • Next,  you need to click on the “Remove Activation lock” button and enter your Email address to get in contact and also for security issues. Then, click on “Continue” to enter your payment details.
  • If your iPhone can “bypass iCloud activation lock”, then you will get an email with a confirmation of the payment. Proceed to complete the payment and wait for your iPhone to be unlocked.

Guide to Bypass iCloud Activation Lock Using iBypasser Free Trial

The iBypasser website is also a reliable one to “Bypass iCloud activation lock” on your iPhone. This website has a free trial so you can use this trial and check if your iPhone can be unlocked without even paying anything. However, the final process of unlocking can only be done through payment.

  • Open your browser and visit the iBypasser website and download the free trial on your computer.

Guide to Bypass iCloud Activation Lock Using iBypasser Free Trial

  • Now, connect your iPhone to the computer using a cable.

Guide to Bypass iCloud Activation Lock Using iBypasser

  • If your iPhone is compatible with this software, then it will Jailbreak your iPhone.

Guide to Bypass iCloud Activation Lock

  • Also, if your iPhone is compatible enough, then automatically the password will be removed.

bypass icloud activation lock

  • The password removal is only for the paid users.
  • So, if you think that this is going to work for your iPhone, then pay for it and unlock your iPhone.

Recommended Guides:

Guide to Bypass iCloud Activation Lock by Contacting Apple

If you are a legit owner of your iPhone and have a receipt, then you can ask Apple itself to unlock your iCloud lock. If they are 100% sure that you are the owner of the iPhone or have been transferred the ownership from someone else, then they will help you.

Guide to Bypass iCloud Activation Lock by Contacting Apple

Also, they will check if the iPhone was reported stolen or missing in their database for security purposes and will only help you when they find you trustable.

  • First of all, open the browser and go to
  • If you have your Apple ID and password, then take help from this portal.
  • If you forgot your ID, then there is also an alternative help option.
  • Take support from this portal and unlock your iPhone.


We have collected various data about “How to Bypass iCloud activation lock for free” and unlock your iPhone. Use the guide provided in this article for you to bypass your iCloud and unlock it. Share this informative article with other iPhone users so that they can also use this process to unlock the iCloud activation lock in their iPhone. Hope you found this article helpful. For more life-saving hacks and informative guides, visit the Tech 170 website.

Continue Reading


Fix “iPhone is Disabled Connect to iTunes” Error {Working Methods}




“iPhone is Disabled Connect to iTunes”. There are a lot of reasons due to which an iPhone is sometimes disabled. It may be due to a small child who has tried to fidget with your phone, or a password that was entered incorrectly multiple times, or maybe it has happened due to sensitive touch on your phone screen when your phone was placed in the pocket.

The next thing which you see is the error code “iPhone is Disabled Connect to iTunes”. This is one of the most frequent things that happens to new iOS users. It is because iOS uses stringent protection and security systems to avoid any kind of hampering and trivial harm done to the phone.

Fix "iPhone is Disabled Connect to iTunes" Error

At first, you might be confused about how to deal with it. But, the truth is it ain’t that difficult either. In this article, we have compiled a list of different methods which can be used to resolve the “iPhone is Disabled Connect to iTunes” error.

How To Fix iPhone is Disabled Connect to iTunes Error

This error code gives you a maximum of 10 chances to enter the correct password. If you fail in all the 10 attempts, you will see an error called ”iPhone is disabled Connect to iTunes”. There may also be a possibility in the worst case that the iPhone wipes out all of its data due to automatic ‘Self-Destruction’ mode.

If you are someone who has a hard time with numbers, it is always advisable to use the Touch ID or Face Recognition Feature instead. The other methods which work perfectly well to resolve this error are given below.

Connecting your iPhone to iTunes

This method will help you to easily restore the iPhone data back to your iPhone. The steps include:

  • Connect your iPhone to the PC or the device where you have synced your phone.
  • Open the iTunes application and connect the iPhone.
  • Wait till the backup procedure starts.

iPhone is Disabled Connect to iTunes

  • After its completion, click on ‘Restore Data’ on your iPhone screen.
  • The last step is to select your device in the iTunes application and initiate the restoration procedure.

If this method doesn’t work maybe because you have not synced your device to iTunes yet, then the best method suited for you is the Recovery Mode. However, you are going to lose all the data present on your iPhone by using the recovery mode.

Fix the iPhone using Recovery Mode

This procedure works smoothly if the instructions are followed well. It is one of the best methods used to wipe out the iPhone data and restore it to the original version. As we have said, it wipes out all the data present on your iPhone. Follow the steps given below to get back your iPhone as a new one.


  • Connect your iPhone to iTunes on your computer or laptop.
  • For iPhone X, iPhone 8, and iPhone 8 plus
    • Press and release the volume up button quickly. Then, press and release the volume button down quickly. In the end, keep on pressing the side button until the recovery mode screen appears on your iPhone.

how to fix iphone is disabled connect to itunes error

  • For iPhone 7 and iPhone 7 plus
    • Simultaneously press and hold the Side and the Volume Down Button until you see the Recovery Mode on your screen.
  • For iPhone 6s and lower versions, and iPad
    • Press and hold the Home and the Side buttons simultaneously till Recovery Mode gets activated.
  • Now, you have to select your iPhone on the PC or Mac to restore the data. If you are using the macOS Catalina, then open the Finder and then select your iPhone or iPad.

how to fix disabled iphone without losing data

  • If you are using macOS Mojave or PC, then open iTunes and select your iPhone or iPad.
  • The next step is to click on ‘Restore’. This will take some time so wait patiently.
  • Now, allow iTunes to set up the operating system on your device. Make sure your iPhone is fully charged before this procedure otherwise you will have to repeat the same thing again if your phone turns off in the middle of the process.
  • Once the OS is downloaded completely, your iPhone will start as a new one. However, you will lose all the data on your phone.
  • If you have synced your iPhone to iTunes, then you can restore the files. Otherwise, all the data will be erased completely.

Recommended Guides:

Fix your iPhone with the help of Unlock Tool.

This method is the least tried but can be used to unlock your device if you still haven’t reached the 10th time to re-enter your password. You simply have to download an Unlock Tool from the iStore which will come in handy when your device gets locked in its extreme sense.

What if Unable to Connect iPhone to iTunes

You know that the error says “iPhone is Disabled Connect to iTunes”. But, what if you are not able to connect your iPhone to iTunes? Then you can restore the iPhone by using iCloud. This method can only work for those iPhones in which the “Find My iPhone” option is enabled. Also, your iPhone must have an internet connection to connect to iCloud.

  • On a PC browser, go to and sign in to your iCloud account.
  • Now, click on the “Find iPhone” icon from the screen.

what if unable to connect iphone to itunes

  • A map with the current location of your iPhone will be displayed.
  • Select the “All devices” option and then click on your iPhone.
  • Finally, select the option for “Erase iPhone”.

Now, your iPhone will be brand new and ready to use.

Final Words

Once you find the message “iPhone is Disabled Connect to iTunes”, you’re already doomed. If you haven’t backed up your data already, then there is no way to get back the data that is present in your disabled iPhone. However, using the methods that we have given here, you can unlock your disabled phone by erasing everything. This time, make sure to note down your password so you won’t get the “iPhone is Disabled Connect to iTunes” error again. For more related articles, visit the Tech 170 articles.

Continue Reading


Working Ways to Fix “Phone Connected to Wifi But No Internet” 2021




Do your phone Connected to Wifi But No Internet? How to fix it? Searching for the same? Then you have landed at the right place. The problem of WiFi without internet on Android is very common all these days. Sometimes, although it seems that your phone is connected to a wireless network. But you can not really see web pages.

In that case, you can try checking your email, use WhatsApp, or any other application that works with the internet. Even though if you encounter the same, then it’s time to fix the error right away. Well, there are certain ways to fix this phone connected to wifi but no internet issue. You may notice several methods available but only a few 100% help in resolving the issue.

Phone Connected to Wifi But No Internet

Researching a bit I could find some methods to solve this problem in which Android connects to WiFi but does not give access to the Internet. The majority requires making manual adjustments to the device or the Router. But we also wanted to cover all the possibilities by adding some of the best applications to repair the WiFi in Android. Hence let’s start now analyzing and learning the essential things shared just below.

My Phone Connected to Wifi But No Internet! How to fix It?

Now, before you start testing solutions to repair the Internet on Android, it is important to first make sure that it is a problem with your phone and not with the Internet connection or the Router. Then connect a computer or other mobile device to the WiFi network you want to use and if you can access the Internet without a problem, then you have to check the phone. Otherwise, you will have to check your Internet connection.

Anyhow all the steps involved by which you should follow to solve this problem WiFi without Internet on Android are as follows. Let’s begin learning these simple steps and implement them now to fix the issue successfully.

Forget WiFi Network

Phone Connected to Wifi But No Internet how to fix

  • The very first Click on “Settings”, then on “WiFi” and then press and hold the name of the network. Press then on “Forget”.
  • After this, restart your phone and preferably your modem. Then try to connect to WiFi again.

Advanced WiFi configuration

Follow the below instructions to fix the Phone connected to WiFi But no Internet issue now.

wifi network android phone

  • Access Settings then click on WiFi. If you are connected to the network click on it. Then choose to Forget.

fix Phone Connected to Wifi But No Internet

  • Now select your WiFi network again, enter the password and then click on “Show advanced options“.

fix Phone Connected to Wifi But No Internet now

  • Right there, scroll down to IP Configuration and select “Static” instead of DHCP.
  • Now, right in the “IP Address” field, you must enter the IP address that you want to assign to your phone.
  • Usually, if your modem or router has an address of type You can assign an IP address in the range to
  • In the “Access” field you must enter the IP address of your router, which is usually,, or
  • And remember in the “Network prefix length“, the value that is normally used is 24

Phone Connected to Wifi But No Internet fix now

  • Finally, in DNS 1 and DNS 2 fields, (primary and secondary DNS servers). You can use Google Public DNS: and, respectively.
  • As a result, click on « Connect » and check if you already have the internet on your Android.

Check the Time and Date

If the above solutions don’t work, try this simple trick and see whether the issue so-called phone connected to wifi but no internet is resolved or no. To fix the problem, follow these simple steps.

iphone connected to wifi but no internet

  • Check the time and date of your phone are correct whether they are correct or wrong. Along with this try to check regarding time zone of your modem or router.
  • It even checks in the Router that the selected region is the indicated one or not exactly the same. That is, be sure to select your country since an incorrect configuration could cause interference and thereby encounters this issue.

Most of the time, this simple trick helped a lot of people fixing the issue. If this failed to work, try the below one.

Remove the Phone’s Battery

Sometimes removing the’s battery also helps in fixing the issue so easily. Let’s step into the instructions now.

why is my internet not working on my phone

  • While your phone is on, remove the battery and leave it that way for 30 seconds.
  • Then replace the battery and try to connect to the Internet.

Isn’t this method looks simple? try now because this may work without any fail. What if your phone has an in-built battery?  If in that case try the above and below solutions skipping this method.

Configure the Wireless Mode

In order to configure the wireless mode successfully, follow the below instructions.

  • Access the configuration of your modem from any web browser and then enter the wireless section.
  • Test then between 802.11b, 802.11g and 802.11b + g + n wireless modes.
  • A configuration that works in most cases is “Mode: 11bgn mixed / Channel: Auto”.
  • With this, you can connect your Android phone to the Internet even with a dynamic IP configuration successfully.

Recommended Guides:

Restart your modem

This is another simple fix that you can try now. Let’s step in learning the instructions shared just below in simple terminology.

wifi connected but no internet windows 10

  • As discussed restarting the modem is another thing you can do to repair WiFi on Android. This often helps to solve Internet connection problems.
  • To do so, you are allowed to disconnect the power cable of the modem and wait 30 seconds or 1 minute to reconnect the device later.
  • You can take the modem a few minutes to re-establish the network connection. So you have to wait a bit and once ready, check that the Internet is working properly.

DNS Cache Conflict

The DNS Cache usually stores the unused data like recently visited websites and thereby allows to load the web pages very fastly. So whenever you enter the URL, the OS you are operating is going to intercepts and thereby look for the cache. If the request you have sent and it gets a match with the cache web pages none other in stored web pages, OS takes from it rather than taking from the internet. Hence there is going to be a mismatch in the IP address and thereby results in the corresponding error. To fix this, follow the below instructions.

  • Tap Windows+R and type CMD.

internet not working but connected

  • Run the command so that you can visualize the command prompt displaying on the screen.

wifi connected but no internet access windows 7

  • Type the command “ipconfig/flushdns”
  • Press on the enter key.

Doing so flushes the entire unused or corrupted cache available in your system. Thereby fixes the error successfully.

Now What If Nothing Works

Reset the phone can also be an option to repair the WiFi in Android. However, before reaching these instances, be sure to try the solutions already mentioned above.


Hence, We have provided all the troubleshooting steps to solve the Phone Connected to Wifi But No Internet. We hope you like the article and it has helped you to solve your problem. Do not forget to share your experience and if you know another way to solve the problem of WiFi without Internet on Android, do not hesitate to share it with us. Stay tuned to tech 170 for more tutorials and guides.

Continue Reading


Copyright © 2021 All Rights Reserved by Tech 170