Skip to content
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

Open
1 task
wills721 opened this issue Feb 10, 2025 · 8 comments
Open
1 task

Ubuntu core install fails #9287

wills721 opened this issue Feb 10, 2025 · 8 comments
Assignees
Labels
bug This issue is a bug. installation p3 This is a minor priority issue

Comments

@wills721
Copy link

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

  • Select this option if this issue appears to be a regression.

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

@wills721 wills721 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 10, 2025
@marrek-az
Copy link

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.

@wills721
Copy link
Author

Any idea how I would go about doing this? Am I the first to use aws-cli on Ubuntu-Core?

@wills721
Copy link
Author

Ubuntu Core apparently is not a "classic" system -- so seems I am out of luck with putting aws-cli on any Ubuntu core version?

@wills721
Copy link
Author

Even if I try to use classic I get this:
root@thio-lab-6:# sudo classic
(classic)root@thio-lab-6:
# sudo snap install aws-cli --classic
error: snap "aws-cli" requires classic confinement which is only available on classic systems
(classic)root@thio-lab-6:~#

@marrek-az
Copy link

marrek-az commented Feb 10, 2025

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.

@wills721
Copy link
Author

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)

@wills721
Copy link
Author

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).

@adev-code adev-code self-assigned this Mar 11, 2025
@adev-code adev-code added investigating This issue is being investigated and/or work is in progress to resolve the issue. p3 This is a minor priority issue installation and removed needs-triage This issue or PR still needs to be triaged. labels Mar 11, 2025
@adev-code
Copy link

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 ? :

$ curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

@adev-code adev-code removed the investigating This issue is being investigated and/or work is in progress to resolve the issue. label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. installation p3 This is a minor priority issue
Projects
None yet
Development

No branches or pull requests

3 participants