This question already has an answer here:

When I try sudo apt-get install ubuntu-desktop I get the error message: unable to locate package ubuntu-desktop. Where do I obtain the package? Or what am I doing wrong?

marked as duplicate by karel, Pilot6, Zanna, Charles Green, g_p Sep 2 '17 at 16:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

The most likely situation is that you need to update your sources for some reason, with

sudo apt-get update

It's also possible that your sources aren't set up correctly. You can configure them in the update manager. They are located in the file /etc/apt/sources.list - if you continue to have problems paste the source of that file here.

  • how do I navigate to that file? Whenever I try typing /etc/apt/...I get the message - command not found. I'm a very new beginner btw. – Tom May 5 '12 at 6:04
  • gedit /etc/apt/ sources.list ;if you use ubuntu gedit installed by default – Nur May 28 '13 at 14:28
  1. This may help you!!!
  2. Enter the following in terminal

    sudo su
    apt-get clean
    cd /var/lib/apt
    mv lists lists.old
    mkdir -p lists/partial
    apt-get clean
    apt-get update
    

protected by Community Sep 3 '17 at 22:32

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.