2

As you can probably tell by the title, I'm a complete novice in Linux environments.

Trying to work out how to install apps using sudo apt-get install. I have been able to install some, but recently it started to fail.

For example I'd like to install elementary-tweaks, but the error message is the same, for all E: Unable to locate package elementary-tweaks

I THINK I understand that if I add a PPA I should access the packages associated with that PPA.

Therefore I have tried removing previous PPAs (as seen on some answers on this site), and add this: https://code.launchpad.net/~versable/+archive/ubuntu/elementary-update followed by a sudo apt-get update.

I have also tried sudo apt-get -f install, PPA purge, etc...

Still, the error message remains.

Error message:

Reading package lists... Done
Building dependency tree        
Reading state information... Done
E: Unable to locate package elementary-tweaks

Could anyone please point it out for me, what am I missing in this? Also that what is a possible resolution to similar cases?

Thanks!

3 Answers3

1

That's should work for any Elementary OS, the proper way to add ppa

sudo apt-add-repository ppa:versable/elementary-update
sudo apt-get update
sudo apt-get install elementary-tweaks

So .. If that not work then update the Q with the Error

Ahed Eid
  • 1,112
0
  1. Backup your /etc/apt/sources.list file first

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

  2. Edit your /etc/apt/sources.list

    sudo nano /etc/apt/sources.list

  3. Copy/paste the content below and save /etc/apt/sources.list file

  4. Update the apt

    sudo apt update

  5. Try installing your app again. For example:

    sudo apt install snapd


# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted

Major bug fix updates produced after the final release of the

distribution.

deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

team. Also, please note that software in universe WILL NOT receive any

review or updates from the Ubuntu security team.

deb http://us.archive.ubuntu.com/ubuntu/ xenial universe

deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe

deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe

deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe

N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

team, and may not be under a free licence. Please satisfy yourself as to

your rights to use the software. Also, please note that software in

multiverse WILL NOT receive any review or updates from the Ubuntu

security team.

deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse

deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse

deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

N.B. software from this repository may not have been tested as

extensively as that contained in the main release, although it includes

newer versions of some applications which may provide useful features.

Also, please note that software in backports WILL NOT receive any review

or updates from the Ubuntu security team.

deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

Uncomment the following two lines to add software from Canonical's

'partner' repository.

This software is not part of Ubuntu, but is offered by Canonical and the

respective vendors as a service to Ubuntu users.

deb http://archive.canonical.com/ubuntu xenial partner

deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted

deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted

deb http://security.ubuntu.com/ubuntu xenial-security universe

deb-src http://security.ubuntu.com/ubuntu xenial-security universe

deb http://security.ubuntu.com/ubuntu xenial-security multiverse

deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse```

0

make sure you're in the home directory. just close out the terminal and open a new terminal window.

via https://launchpad.net/elementary-tweaks:

sudo add-apt-repository ppa:mpstark/elementary-tweaks-daily && sudo apt-get update && sudo apt-get install elementary-tweaks

dracer
  • 11