question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Ubuntu 20.04 (Focal Fossa) release

See original GitHub issue

Is your feature request related to a problem? Please describe.

az cli can’t be installed on Ubuntu 20.04 using apt after referring to official method, as right after apt update user will be greeted with following error:

E: The repository 'https://packages.microsoft.com/repos/azure-cli focal Release' does not have a Release file.

As I originally pointed out in https://github.com/Azure/azure-cli/issues/9585#issuecomment-608319542, only way to install it is to resort to a hack which is to add an older Ubuntu release to /etc/apt/sources.list.d/azure-cli.list file. i.e:

deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ disco main

Which will then lead to other problems as discovered in: https://github.com/Azure/azure-cli/issues/13030#issuecomment-615547689

Describe the solution you’d like

As someone who used to create various Debian packages and handle custom repositories. Since last Ubuntu release libffi6 is availability for is 19.04, I would simply repackage this package for 20.04 and upload it as such to https://packages.microsoft.com/repos/azure-cli repo. After adding support for focal release for the repository, you’ve solved the problem of inability to have az cli installed and all of its features fully working on >= Ubuntu 20.04.

Describe alternatives you’ve considered

I would encourage you as a company to give az cli snap more attention, as one such packaging format could’ve solve all the problem mentioned here. I had a similar problem with my Python app which I addressed by creating a snap.

Additional context

None, please inform me if you have any additional questions and/or comments.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:47
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
fengzhou-msftcommented, May 26, 2020

Focal package released for azure-cli 2.6.0. Please try again.

5reactions
jetzerbcommented, Apr 28, 2020

My current workaround is a pair of hacks to install the latest pre-packaged version on focal / 20.04:

# 1. Override the installer script to hardcode `eoan` package source:
curl -sL https://aka.ms/InstallAzureCLIDeb | sed 's/${CLI_REPO}/eoan/g;' | bash;

# 2. Add a symlink to make it appear that libffi 6 is installed:
cd /lib/x86_64-linux-gnu;
ln -s libffi.so.7.1.0 libffi.so.6;
Read more comments on GitHub >

github_iconTop Results From Across the Web

FocalFossa/ReleaseNotes - Ubuntu Wiki
These release notes for Ubuntu 20.04 LTS (Focal Fossa) provide an overview of the release and document the known issues with Ubuntu 20.04...
Read more >
How To Upgrade Ubuntu To 20.04 LTS Focal Fossa
Upgrade to 19.10 first by changing the default behavior of the release upgrader to normal within the /etc/update-manager/release-upgrades file.
Read more >
Ubuntu 20.04 Focal Fossa – What's New - Snel.com
Canonical released its most recent version of Ubuntu, Ubuntu 20.04, code-named focal fossa, on 21 April 2020. It's a long term supported ......
Read more >
How To Upgrade to Ubuntu 20.04 Focal Fossa - DigitalOcean
The Ubuntu operating system's latest Long Term Support (LTS) release, Ubuntu 20.04 (Focal Fossa), was released on April 23, 2020.
Read more >
WireGuard will be supported on Ubuntu 20.04 Focal Fossa
Canonical will add WireGuard support to Ubuntu 20.04, but will do it on its own ... Ubuntu 20.04 LTS Focal Fossa is the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found