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

libffi is an undocumented dependency #13235

Closed
jetzerb opened this issue Apr 28, 2020 — with docs.microsoft.com · 4 comments
Closed

libffi is an undocumented dependency #13235

jetzerb opened this issue Apr 28, 2020 — with docs.microsoft.com · 4 comments
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. OKR3.2 Candidate Packaging

Comments

Copy link

jetzerb commented Apr 28, 2020

On a fresh install of the azure cli on Ubuntu, using the method described on Install Azure CLI with apt, attempting to install an extension results in an error message. Adding the debug flag shows that it's due to a missing dependency on libffi (see comments on azure-cli-extensions issue # 535 on github)
Please update either this page or the page linked above to call it out as a dependency.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@ghost ghost added needs-triage customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Apr 28, 2020
@yungezz yungezz added Packaging and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Apr 28, 2020
@ghost ghost removed the needs-triage label Apr 28, 2020
@yungezz yungezz added this to the S170 milestone Apr 28, 2020
@yungezz
Copy link
Member

yungezz commented Apr 28, 2020

@fengzhou-msft could you pls have a look?thanks

@fengzhou-msft fengzhou-msft removed this from the S170 milestone Jun 9, 2020
@fengzhou-msft
Copy link
Member

@jetzerb which Ubuntu distro are you using? I tested on Bionic and Xenial, and the install of azure-devops can be done successfully.

For the debug log in comments, I noticed there's a mismatch between the package repo and the distro:

DEBUG: Linux distro check: /etc/apt/sources.list.d/azure-cli.list has 'wheezy', current distro is 'bionic'

And it could be the reason for the failure according to this comment.

@jetzerb
Copy link
Author

jetzerb commented Jul 6, 2020

@fengzhou-msft I am using Focal (20.04). I just tried it now and it worked fine.

I think you're right about the version mismatch. At the time, Microsoft didn't have a Ubuntu 20.04 repository, so I was overriding the installation script to pull the 19.10 version of azure-cli and creating a symlink of libffi7 to libffi6 to satisfy the older version's requirement. I removed that workaround at the end of May, at which time MS had a 20.04 package repository.

I see that libffi is installed in the base Ubuntu 20.04 container, so while it is technically a requirement, the fact that it's installed by default means that it's not practically a requirement.

@fengzhou-msft
Copy link
Member

@fengzhou-msft I am using Focal (20.04). I just tried it now and it worked fine.

I think you're right about the version mismatch. At the time, Microsoft didn't have a Ubuntu 20.04 repository, so I was overriding the installation script to pull the 19.10 version of azure-cli and creating a symlink of libffi7 to libffi6 to satisfy the older version's requirement. I removed that workaround at the end of May, at which time MS had a 20.04 package repository.

I see that libffi is installed in the base Ubuntu 20.04 container, so while it is technically a requirement, the fact that it's installed by default means that it's not practically a requirement.

Right. And we have a troubleshooting section in case libffi is missing after installation on some old systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. OKR3.2 Candidate Packaging
Projects
None yet
Development

No branches or pull requests

3 participants