Facing requires classic confinement error
Bug #1853122 reported by
kapil chouhan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
As per the documentation, https:/
I am trying to install kubectl with the curl command:
```
sudo curl --unix-socket /run/snapd.socket -H "Content-Type: application/json" -X POST -d '{"action": "install", "snaps": ["kubectl"], "classic": true}' http://
```
but it gives an error like:
```
{
"type": "error",
"status-code": 400,
"status": "Bad Request",
"result": {
"message": "snap \"kubectl\" requires classic confinement",
"kind": "snap-needs-
"value": "kubectl"
}
}
```
To post a comment you must log in.
Can you try with "name": "kubectl" instead of "snaps"?
There are different features available if you install one vs if you install many:
https:/ /github. com/snapcore/ snapd/blob/ master/ client/ snap_op. go#L80