# Sudo snap install microk8s --classic fails

**URL:** <https://discuss.kubernetes.io/t/sudo-snap-install-microk8s-classic-fails/4569>\
**Category:** microk8s\
**Created:** [February 8, 2019, 8:49pm UTC](https://discuss.kubernetes.io/t/sudo-snap-install-microk8s-classic-fails/4569 "2019-02-08T20:49:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavlos\_Parissis](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@Pavlos\_Parissis](https://discuss.kubernetes.io/u/Pavlos_Parissis)\
**Post date:** [February 8, 2019, 8:49pm UTC](https://discuss.kubernetes.io/t/sudo-snap-install-microk8s-classic-fails/4569/1 "2019-02-08T20:49:15Z")

</div>

Hi,

On a Debian Stable (version 9.7) I can’t install microk8s as I am getting the following

```auto
sudo snap install microk8s --classic
error: cannot perform the following tasks:
- Run configure hook of "microk8s" snap if present (run hook "configure": 
-----
+ '[' '!' -d /var/snap/microk8s/383/certs ']'
+ grep -e '\-\-client-ca-file=${SNAP}/certs/ca.crt' /var/snap/microk8s/383/args/kube-apiserver
grep: /var/snap/microk8s/383/args/kube-apiserver: No such file or directory
+ grep requestheader-client-ca-file /var/snap/microk8s/383/args/kube-apiserver
grep: /var/snap/microk8s/383/args/kube-apiserver: No such file or directory
+ echo 'Patching requestheader-client-ca-file argument'
Patching requestheader-client-ca-file argument
+ echo ''
/snap/microk8s/383/meta/hooks/configure: line 29: /var/snap/microk8s/383/args/kube-apiserver: No such file or directory
-----)

```

I followed the instructions from [https://microk8s.io/#quick-start](https://microk8s.io/#quick-start) and I successfully install snapd, but I couldn’t proceed due to the above error.

The directory `/var/snap` was created but nothing under it.

It is my first time using snapd, so I don’t know if it is an issue with snap or with microk8s itself.  
Any hints would be very much appreciated.

Thanks,  
Pavlos

---

<div class="post-metadata">

**Author:** ![kjackal](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/kjackal/32/1750_2.png) [@kjackal](https://discuss.kubernetes.io/u/kjackal)\
**Post date:** [February 8, 2019, 9:49pm UTC](https://discuss.kubernetes.io/t/sudo-snap-install-microk8s-classic-fails/4569/2 "2019-02-08T21:49:27Z")

</div>

Hi @Pavlos_Parissis,

This looks like a known issue with snapd on Debian. Have a look here [https://forum.snapcraft.io/t/snapd-not-apt-installing-properly-on-debian-9/8240](https://forum.snapcraft.io/t/snapd-not-apt-installing-properly-on-debian-9/8240) . If I am not mistaken this is already addressed but the fix needs to propagate through the Debian release.

The workaround for now is to do a `sudo snap install core` before you `sudo snap install microk8s --classic`.

---

<div class="post-metadata">

**Author:** ![Pavlos\_Parissis](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@Pavlos\_Parissis](https://discuss.kubernetes.io/u/Pavlos_Parissis)\
**Post date:** [February 8, 2019, 10:15pm UTC](https://discuss.kubernetes.io/t/sudo-snap-install-microk8s-classic-fails/4569/3 "2019-02-08T22:15:10Z")

</div>

Hello @kjackal,

The proposed workaround worked fine, thanks a lot. I read the long thread as well, thanks for sharing it.

Once again thanks a lot for your assistance,  
Pavlos
