-1

How can I add another repositories in Loki?

When I try to install software-properties-common I get the message:

E: Unable to locate package software-properties-common

My system version:

root@B400VC:~# cat /etc/os-release 
NAME="elementary OS"
VERSION="0.4.1 Loki"
ID="elementary"
ID_LIKE=ubuntu
PRETTY_NAME="elementary OS 0.4.1 Loki"
VERSION_ID="0.4.1"
HOME_URL="http://elementary.io/"
SUPPORT_URL="http://elementary.io/support/"
BUG_REPORT_URL="https://github.com/elementary/"
VERSION_CODENAME=loki
UBUNTU_CODENAME=loki
6
  • can you add the full command you are attempting to execute? Sep 5 '17 at 14:42
  • root@B400VC:~# apt-get install software-properties-common Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package software-properties-common root@B400VC:~#
    – serejick
    Sep 6 '17 at 8:38
  • You need to run it with the sudo command. Sep 6 '17 at 10:53
  • Nevermind it looks like you are running as root. I missed that. Sep 6 '17 at 11:50
  • apt update runs without problems?
    – Eric G
    Sep 7 '17 at 13:42
1

I once had similar problem - my sources where somehow wrong. Here were the correct ones for LOKI that solved it for me:

sudo scratch-text-editor /etc/apt/sources.list.d/appcenter.list

and there...

deb http://packages.elementary.io/appcenter xenial main

...next...

sudo scratch-text-editor /etc/apt/sources.list.d/elementary.list

and there

deb http://ppa.launchpad.net/elementary-os/stable/ubuntu xenial main
deb-src http://ppa.launchpad.net/elementary-os/stable/ubuntu xenial main

...next...

sudo scratch-text-editor /etc/apt/sources.list.d/patches.list

and there

deb http://ppa.launchpad.net/elementary-os/os-patches/ubuntu xenial main
deb-src http://ppa.launchpad.net/elementary-os/os-patches/ubuntu xenial main
0

I have gotten this before.

You cannot install software-properties-common until you have first run an update

sudo apt-get update

sudo apt-get install software-properties-common

That should do it.

2
  • root@B400VC:~# root@B400VC:~# apt-get update Fetched 4 840 B in 0s (7 702 B/s) Reading package lists... Done root@B400VC:~# apt-get install software-properties-common Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package software-properties-common root@B400VC:~#
    – serejick
    Sep 11 '17 at 9:24
  • Hmm... I am not too sure at this point. Maybe your sources got messed up? Here is a link where I posted my sources as a download in a comment. Maybe they can replace yours and get you back to speed. elementaryos.stackexchange.com/questions/13073/…
    – Eosdude
    Sep 12 '17 at 19:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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