-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu core install fails #9287
Comments
The aws-cli snap requires classic confinement, and there is currently no way around this. Features of the cli like copying files from S3 are difficult to support with strict confinement in a way that provides a predictable experience to the majority of users. This isn’t likely to change soon. It may be possible for you to rebuild the existing snap with strict confinement with little modification—at least for the v2/stable version. |
Any idea how I would go about doing this? Am I the first to use aws-cli on Ubuntu-Core? |
Ubuntu Core apparently is not a "classic" system -- so seems I am out of luck with putting aws-cli on any Ubuntu core version? |
Even if I try to use classic I get this: |
I'm not surprised you cannot use classic confinement on Ubuntu Core. The only solution that I can think of would be to "roll your own". It may be possible to rebuild the snap with snapcraft on a regular Ubuntu LTS system, changing the classic confinement to strict confinement. This is impractical to do for the snap store listing, but you could build it and install your own version. At least, it may be possible for v2/stable. I would not try it with v1/stable. I have not tested this. The snapcraft.yaml file might already be present in the snap under /snap/aws-cli/current/snap, I think. If not, then it may be easy enough to include it, so refresh your snap in a few days and check again. At present, the snapcraft.yaml is not part of this repo. [EDIT] all of this assumes that you are using ubuntu core on an architecture supported by the aws-cli binary builds. If not, and you need to build from source, then this will be a lot more complicated. |
Sounds like I'm diverging from a known path which is contradictory to using Ubuntu Core -- but the platform I use is the Raspberry Compute Module (4 or 5) |
I mean, the Raspberry Compute Modules support Ubuntu Core. You would think AWS would "want" to support this. Ubuntu Core is a better edge OS -- much lighter more modular better at reducing network overhead with OS upgrades (etc). |
Hi @wills721, I have set up my own environment with Ubuntu Core 24 (arm64) and I did not get the same issue. I was able to install AWS CLI from all the available commands listed here : https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html . Have you also tried ? :
|
Describe the bug
error: snap "aws-cli" requires classic confinement which is only available on classic systems
Trying to install aws-cli on Ubuntu Core 24 (arm64) and getting this error above.
Tried under --classic and tried within classic (sudo classic). Same error.
Help?
Regression Issue
Expected Behavior
aws-cli will install
Current Behavior
Fails
Reproduction Steps
Run snap install aws-cli --classic
Possible Solution
No response
Additional Information/Context
No response
CLI version used
Newest desired
Environment details (OS name and version, etc.)
Ubuntu core 24
The text was updated successfully, but these errors were encountered: