When a try:

sudo apt install elementary-sdk

it says

Unable to locate package elementary-sdk

It's a fresh install of loki.

apt update 

give me a 404 error.

Err:7 http://br.archive.ubuntu.com/ubuntu loki Release                                                                                                 
404  Not Found [IP: 80]

2 Answers 2


This is a repository error: there is no Ubuntu version "loki", you should use "xenial" Ubuntu repositories with elementary repositories.


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


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
  • I will investigate later tonight, but seems to me that software-properties-common is messing around with sources list.
    – williangnr
    Apr 13, 2017 at 15:41

I can verify updating "hera" to "bionic" in the following source list files allowed me to install elementary-sdk just now (for Elementary OS 5.1):


This appears to be an ongoing issue the past 4 years so I've filed a bug in GitHub so this gets fixed at its root.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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