I'm using Ubuntu 16.04. But I think the snapd is broken in my system.

When I run $ snap --version, I get this response:

snapd   unavailable
series  -

I have also problem running $ sudo apt upgrade and $ sudo apt -f install. Every time I get errors such as:

Setting up snapd ( ...
Failed to execute operation: No such file or directory

Any help?

Updates below.

Also lsb_release -a reports

Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release:    16.04
Codename:   xenial

With dpkg --get-selections | grep linux-image | grep -v deinstall, I get


If I run sudo apt -f install and sudo apt upgrade I get:

## To be filed by Masroor ##
  • Is this a real genuine install of 16.04? I'm guessing it's a server, VPS or other appliance provided by a 3rd party, and has been modified somehow. What's the origin of the install? What does lsb_release -a report? – popey Feb 26 '18 at 12:12
  • 1
    What's the origin of the machine? Was it clean installed with 14.04 and upgraded? Did it ship with Ubuntu out of the box? The reason I am asking is because we often see these issues on systems which aren't genuine Ubuntu, or systems that have had packages removed. The fact you're getting messages for snapd 14.04 on 16.04 is alarming. – popey Feb 26 '18 at 12:58
  • 2
    I would be interested in the actual errors you get with sudo apt -f install or sudo apt upgrade. Sorry I can't help with snap*. If you wish to reply, please edit your question & add there, and not comments (more formatting choices exist in question/answers) – guiverc Feb 26 '18 at 13:24
  • 1
    What is the output of apt-cache policy snapd? Its version is wrong, it is for trusty (14.04), not xenial (16.04). – N0rbert Feb 26 '18 at 13:26
  • 2
    My 16.04 machines are up to point release 16.04.4, if you are on 16.04.1 and using that kernel, something is very weird with your system. – Organic Marble Feb 26 '18 at 13:35

Try to remove snapd completely with:

sudo apt-get purge snapd snapd-login-service

Re-enable main repository with:

sudo add-apt-repository main

Then install it again:

sudo apt-get update
sudo apt-get install snapd snapd-login-service

This should make /snap directory available again.

  • 1
    I have exactly the same problem. Tried this solution with no luck . "snap --version snap 2.33.1ubuntu2 snapd unavailable series - " snapd does not even appear in sudo service --status-all or anything that prompts it is indeed installed – alvaroc Jul 23 '18 at 17:36

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.