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

Installation fails on Debian bookworm due to outdated dependencies #25750

Closed
fknittel opened this issue Mar 10, 2023 · 17 comments · Fixed by #26690
Closed

Installation fails on Debian bookworm due to outdated dependencies #25750

fknittel opened this issue Mar 10, 2023 · 17 comments · Fixed by #26690
Assignees
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request Packaging
Milestone

Comments

@fknittel
Copy link

Related command
$ curl -sL https://aka.ms/InstallAzureCLIDeb | docker run --rm -i debian:bookworm bash -

Describe the bug
The azure-cli package provided for Debian bookworm depends on the packages libffi7 and libssl1.1, which are not available:

The following packages have unmet dependencies:
 azure-cli : Depends: libffi7 (>= 3.3~20180313) but it is not installable
             Depends: libssl1.1 (>= 1.1.1) but it is not installable

To Reproduce
Running the documented installation command curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash on a Debian bookworm installation causes the installation failure. Easily reproducable by using the debian:bookworm docker image (see related command above).

Expected behavior
Expected the installation to succeed without error on Debian bookworm.

Environment summary
Installation method: apt-get (via the installation script, see above)
OS version: Debian bookworm (testing), specifically tested on docker image debian:bookworm-20230227 (see above)

@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Mar 10, 2023
@yonzhan yonzhan added Packaging Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 11, 2023
@yonzhan yonzhan added this to the Backlog milestone Mar 11, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 11, 2023

@bebound for awareness

@bebound
Copy link
Contributor

bebound commented Mar 13, 2023

CLI does not support Debian 12.

@lulujrush
Copy link

@bebound Can it though?

MS clearly has Debian power users (those of use who use Debian Testing/Next) interested in using the tools provided to the Linux community.

Debian 12 will be released mid-2023 as well so why not prep the package for it now vs waiting. :D

@bebound
Copy link
Contributor

bebound commented Mar 30, 2023

We'll support it once it's released.

For now, you can install CLI from pypi or use CLI docker image.

@fknittel
Copy link
Author

Understood, thanks for the heads up.

I guess our expectation originated from the fact that you're providing a package for this unsupported distribution release in https://packages.microsoft.com/repos/azure-cli/dists/bookworm/. Might want to avoid that in the future.

Anyways, I guess we'll migrate our provisioning to manual installation via pip.

@lulujrush
Copy link

It appears they have now removed that, but my expectations was that it had been working on Bookworm for over a year then it broke. :) The lib version they are requiring is outdated to begin with.

@yonzhan yonzhan added feature-request 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 3, 2023
@yrro
Copy link

yrro commented Jun 12, 2023

Debian 12 (bookworm) is now out.

@lulujrush
Copy link

Debian 12 (bookworm) is now out.

yeah it is! I spent the weekend wiping my main and installing fresh version! :D

@bebound how long do you think it will take for you all to now support this on Debian again?

@bebound
Copy link
Contributor

bebound commented Jun 15, 2023

I'm working on this. I hope I can release it within in next two releases.

@bebound
Copy link
Contributor

bebound commented Jun 25, 2023

The package is built but the API of releasing Linux packages is changed. I need some time to migrate to new API to release it.

@williamscs
Copy link

Hi @bebound! Were you tracking the release in another issue? Where's a good place to subscribe to be notified?

@bebound
Copy link
Contributor

bebound commented Jun 30, 2023

@williamscs I'll comment here once it's released.

@kitingChris
Copy link
Contributor

kitingChris commented Jul 10, 2023

Same problem on Ubuntu 22.10 LTS after apt upgrade

@bebound
Copy link
Contributor

bebound commented Jul 11, 2023

@kitingChris I can't repro.

@kitingChris
Copy link
Contributor

kitingChris commented Jul 11, 2023

# sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu kinetic InRelease
Get:2 http://archive.ubuntu.com/ubuntu kinetic-updates InRelease [118 kB]                                                                                                                                         
Hit:3 https://download.docker.com/linux/ubuntu kinetic InRelease                                                                                                                                                  
Get:4 https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.10 ./ InRelease [1.604 B]                                                                                     
Hit:5 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                                  
Hit:6 https://packages.microsoft.com/repos/azure-cli focal InRelease                                                                                                        
Hit:7 https://packages.microsoft.com/repos/edge stable InRelease                                                                                      
Hit:8 https://ppa.launchpadcontent.net/nextcloud-devs/client/ubuntu kinetic InRelease
Hit:9 https://packages.microsoft.com/ubuntu/22.10/prod kinetic InRelease                                               
Get:10 https://packages.microsoft.com/repos/code stable InRelease [3.569 B]                                            
Get:11 http://archive.ubuntu.com/ubuntu kinetic-security InRelease [109 kB]                                              
Get:12 http://archive.ubuntu.com/ubuntu kinetic-backports InRelease [99,9 kB]                   
Hit:13 https://ppa.launchpadcontent.net/phoerious/keepassxc/ubuntu kinetic InRelease             
Get:14 http://archive.ubuntu.com/ubuntu kinetic-updates/main i386 Packages [223 kB]
Get:15 https://packages.microsoft.com/repos/code stable/main amd64 Packages [72,6 kB]
Get:16 http://archive.ubuntu.com/ubuntu kinetic-updates/main amd64 Packages [399 kB]
Get:17 http://archive.ubuntu.com/ubuntu kinetic-updates/main amd64 DEP-11 Metadata [85,8 kB]
Get:18 http://archive.ubuntu.com/ubuntu kinetic-updates/main amd64 c-n-f Metadata [10,3 kB]
Get:19 http://archive.ubuntu.com/ubuntu kinetic-updates/universe i386 Packages [164 kB]  
Get:20 https://packages.microsoft.com/repos/code stable/main armhf Packages [73,4 kB]
Get:21 http://archive.ubuntu.com/ubuntu kinetic-updates/universe amd64 Packages [311 kB]
Get:22 http://archive.ubuntu.com/ubuntu kinetic-updates/universe amd64 DEP-11 Metadata [47,7 kB]
Get:23 https://packages.microsoft.com/repos/code stable/main arm64 Packages [72,9 kB]                   
Get:24 http://archive.ubuntu.com/ubuntu kinetic-updates/multiverse amd64 DEP-11 Metadata [212 B]                    
Get:25 http://archive.ubuntu.com/ubuntu kinetic-security/main amd64 DEP-11 Metadata [30,1 kB]
Get:26 http://archive.ubuntu.com/ubuntu kinetic-security/main amd64 c-n-f Metadata [7.584 B]
Get:27 http://archive.ubuntu.com/ubuntu kinetic-security/universe amd64 DEP-11 Metadata [12,2 kB]
Get:28 http://archive.ubuntu.com/ubuntu kinetic-backports/universe amd64 DEP-11 Metadata [14,1 kB]
Fetched 1.856 kB in 1s (1.381 kB/s)                                           
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
19 packages can be upgraded. Run 'apt list --upgradable' to see them.

# sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  azure-cli libspeechd2 python3-speechd speech-dispatcher speech-dispatcher-audio-plugins speech-dispatcher-espeak-ng ubuntu-advantage-tools
The following packages will be upgraded:
  aspnetcore-targeting-pack-6.0 aspnetcore-targeting-pack-7.0 dotnet-apphost-pack-6.0 dotnet-apphost-pack-7.0 dotnet-host dotnet-hostfxr-6.0 dotnet-hostfxr-7.0 dotnet-runtime-deps-6.0 dotnet-runtime-deps-7.0
  dotnet-targeting-pack-6.0 dotnet-targeting-pack-7.0 microsoft-edge-stable
12 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 163 MB of archives.
After this operation, 203 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://packages.microsoft.com/repos/edge stable/main amd64 microsoft-edge-stable amd64 114.0.1823.79-1 [148 MB]
Get:2 https://packages.microsoft.com/ubuntu/22.10/prod kinetic/main amd64 dotnet-targeting-pack-6.0 amd64 6.0.20-1 [2.130 kB]
Get:3 https://packages.microsoft.com/ubuntu/22.10/prod kinetic/main amd64 aspnetcore-targeting-pack-6.0 amd64 6.0.20-1 [1.315 kB]
Get:4 https://packages.microsoft.com/ubuntu/22.10/prod kinetic/main amd64 dotnet-targeting-pack-7.0 amd64 7.0.9-1 [2.569 kB]                                                                                      
Get:5 https://packages.microsoft.com/ubuntu/22.10/prod kinetic/main amd64 aspnetcore-targeting-pack-7.0 amd64 7.0.9-1 [1.499 kB]                                                                                  
Get:6 https://packages.microsoft.com/ubuntu/22.10/prod kinetic/main amd64 dotnet-apphost-pack-6.0 amd64 6.0.20-1 [3.524 kB]                                                                                       
Get:7 https://packages.microsoft.com/ubuntu/22.10/prod kinetic/main amd64 dotnet-apphost-pack-7.0 amd64 7.0.9-1 [3.524 kB]                                                                                        
Get:8 https://packages.microsoft.com/ubuntu/22.10/prod kinetic/main amd64 dotnet-host amd64 7.0.9-1 [57,2 kB]                                                                                                     
Get:9 https://packages.microsoft.com/ubuntu/22.10/prod kinetic/main amd64 dotnet-hostfxr-6.0 amd64 6.0.20-1 [142 kB]                                                                                              
Get:10 https://packages.microsoft.com/ubuntu/22.10/prod kinetic/main amd64 dotnet-hostfxr-7.0 amd64 7.0.9-1 [144 kB]                                                                                              
Get:11 https://packages.microsoft.com/ubuntu/22.10/prod kinetic/main amd64 dotnet-runtime-deps-6.0 amd64 6.0.20-1 [2.796 B]                                                                                       
Get:12 https://packages.microsoft.com/ubuntu/22.10/prod kinetic/main amd64 dotnet-runtime-deps-7.0 amd64 7.0.9-1 [2.890 B]                                                                                        
Fetched 163 MB in 17s (9.601 kB/s)                                                                                                                                                                                
(Reading database ... 318033 files and directories currently installed.)
Preparing to unpack .../00-microsoft-edge-stable_114.0.1823.79-1_amd64.deb ...
Unpacking microsoft-edge-stable (114.0.1823.79-1) over (114.0.1823.67-1) ...
Preparing to unpack .../01-dotnet-targeting-pack-6.0_6.0.20-1_amd64.deb ...
Unpacking dotnet-targeting-pack-6.0 (6.0.20-1) over (6.0.19-1) ...
Preparing to unpack .../02-aspnetcore-targeting-pack-6.0_6.0.20-1_amd64.deb ...
Unpacking aspnetcore-targeting-pack-6.0 (6.0.20-1) over (6.0.19-1) ...
Preparing to unpack .../03-dotnet-targeting-pack-7.0_7.0.9-1_amd64.deb ...
Unpacking dotnet-targeting-pack-7.0 (7.0.9-1) over (7.0.8-1) ...
Preparing to unpack .../04-aspnetcore-targeting-pack-7.0_7.0.9-1_amd64.deb ...
Unpacking aspnetcore-targeting-pack-7.0 (7.0.9-1) over (7.0.8-1) ...
Preparing to unpack .../05-dotnet-apphost-pack-6.0_6.0.20-1_amd64.deb ...
Unpacking dotnet-apphost-pack-6.0 (6.0.20-1) over (6.0.19-1) ...
Preparing to unpack .../06-dotnet-apphost-pack-7.0_7.0.9-1_amd64.deb ...
Unpacking dotnet-apphost-pack-7.0 (7.0.9-1) over (7.0.8-1) ...
Preparing to unpack .../07-dotnet-host_7.0.9-1_amd64.deb ...
Unpacking dotnet-host (7.0.9-1) over (7.0.8-1) ...
Preparing to unpack .../08-dotnet-hostfxr-6.0_6.0.20-1_amd64.deb ...
Unpacking dotnet-hostfxr-6.0 (6.0.20-1) over (6.0.19-1) ...
Preparing to unpack .../09-dotnet-hostfxr-7.0_7.0.9-1_amd64.deb ...
Unpacking dotnet-hostfxr-7.0 (7.0.9-1) over (7.0.8-1) ...
Preparing to unpack .../10-dotnet-runtime-deps-6.0_6.0.20-1_amd64.deb ...
Unpacking dotnet-runtime-deps-6.0 (6.0.20-1) over (6.0.19-1) ...
Preparing to unpack .../11-dotnet-runtime-deps-7.0_7.0.9-1_amd64.deb ...
Unpacking dotnet-runtime-deps-7.0 (7.0.9-1) over (7.0.8-1) ...
Setting up microsoft-edge-stable (114.0.1823.79-1) ...
Setting up dotnet-host (7.0.9-1) ...
Setting up dotnet-apphost-pack-6.0 (6.0.20-1) ...
Setting up dotnet-runtime-deps-7.0 (7.0.9-1) ...
Setting up dotnet-targeting-pack-6.0 (6.0.20-1) ...
Setting up dotnet-runtime-deps-6.0 (6.0.20-1) ...
Setting up dotnet-targeting-pack-7.0 (7.0.9-1) ...
Setting up aspnetcore-targeting-pack-6.0 (6.0.20-1) ...
Setting up dotnet-apphost-pack-7.0 (7.0.9-1) ...
Setting up dotnet-hostfxr-6.0 (6.0.20-1) ...
Setting up dotnet-hostfxr-7.0 (7.0.9-1) ...
Setting up aspnetcore-targeting-pack-7.0 (7.0.9-1) ...
Processing triggers for man-db (2.10.2-2) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu4) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...

# sudo apt-get --with-new-pkgs upgrade azure-cli
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 azure-cli : Depends: libffi7 (>= 3.3~20180313) but it is not installable
             Depends: libssl1.1 (>= 1.1.1) but it is not installable
E: Broken packages

# sudo apt list -a azure-cli libffi7 libssl1.1
Listing... Done
azure-cli/focal 2.50.0-1~focal amd64 [upgradable from: 2.47.0-1~jammy]
azure-cli/focal 2.49.0-1~focal amd64
azure-cli/focal 2.48.1-1~focal amd64
azure-cli/focal 2.48.0-1~focal amd64
azure-cli/now 2.47.0-1~jammy amd64 [installed,upgradable to: 2.50.0-1~focal]
azure-cli/focal 2.47.0-1~focal amd64
azure-cli/focal 2.46.0-1~focal amd64
azure-cli/focal 2.45.0-1~focal amd64
azure-cli/focal 2.44.1-1~focal amd64
azure-cli/focal 2.44.0-1~focal amd64
azure-cli/focal 2.43.0-1~focal amd64
azure-cli/focal 2.42.0-1~focal amd64
azure-cli/focal 2.41.0-1~focal amd64
azure-cli/focal 2.40.0-1~focal amd64
azure-cli/focal 2.39.0-1~focal amd64
azure-cli/focal 2.38.0-1~focal amd64
azure-cli/focal 2.37.0-1~focal amd64
azure-cli/focal 2.36.0-1~focal amd64
azure-cli/focal 2.35.0-1~focal amd64
azure-cli/focal 2.34.1-1~focal amd64
azure-cli/focal 2.34.0-1~focal amd64
azure-cli/focal 2.33.1-1~focal amd64
azure-cli/focal 2.33.0-1~focal amd64
azure-cli/focal 2.32.0-1~focal amd64
azure-cli/focal 2.31.0-1~focal amd64
azure-cli/focal 2.30.0-1~focal amd64
azure-cli/focal 2.29.2-1~focal amd64
azure-cli/focal 2.29.1-1~focal amd64
azure-cli/focal 2.29.0-1~focal amd64
azure-cli/focal 2.28.0-1~focal amd64
azure-cli/focal 2.27.2-1~focal amd64
azure-cli/focal 2.27.1-1~focal amd64
azure-cli/focal 2.27.0-1~focal amd64
azure-cli/focal 2.26.1-1~focal amd64
azure-cli/focal 2.26.0-1~focal amd64
azure-cli/focal 2.25.0-1~focal amd64
azure-cli/focal 2.24.2-1~focal amd64
azure-cli/focal 2.24.1-1~focal amd64
azure-cli/focal 2.24.0-1~focal amd64
azure-cli/focal 2.23.0-1~focal amd64
azure-cli/focal 2.22.1-1~focal amd64
azure-cli/focal 2.22.0-1~focal amd64
azure-cli/focal 2.21.0-1~focal amd64
azure-cli/focal 2.20.0-1~focal amd64
azure-cli/focal 2.19.1-1~focal amd64
azure-cli/focal 2.19.0-1~focal amd64
azure-cli/focal 2.18.0-1~focal amd64
azure-cli/focal 2.17.1-1~focal amd64
azure-cli/focal 2.17.0-1~focal amd64
azure-cli/focal 2.16.0-1~focal amd64
azure-cli/focal 2.15.1-1~focal amd64
azure-cli/focal 2.15.0-1~focal amd64
azure-cli/focal 2.14.2-1~focal amd64
azure-cli/focal 2.14.1-1~focal amd64
azure-cli/focal 2.14.0-1~focal amd64
azure-cli/focal 2.13.0-1~focal amd64
azure-cli/focal 2.12.1-1~focal amd64
azure-cli/focal 2.12.0-1~focal amd64
azure-cli/focal 2.11.1-1~focal amd64
azure-cli/focal 2.11.0-1~focal amd64
azure-cli/focal 2.10.1-1~focal amd64
azure-cli/focal 2.10.0-1~focal amd64
azure-cli/focal 2.9.1-1~focal amd64
azure-cli/focal 2.9.0-1~focal amd64
azure-cli/focal 2.8.0-1~focal amd64
azure-cli/focal 2.7.0-1~focal amd64
azure-cli/focal 2.6.0-1~focal amd64

# sudo apt install libffi7 libssl1.1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libffi7 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libssl1.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libffi7' has no installation candidate
E: Package 'libssl1.1' has no installation candidate

@bebound
Copy link
Contributor

bebound commented Jul 12, 2023

Maybe your repo config is wrong: upgradable to: 2.50.0-1~focal.

In a fresh ubuntu:22.10 docker, run curl -sL https://aka.ms/InstallAzureCLIDeb | bash and it uses jammy repo to install 2.50.
You can edit /etc/apt/sources.list.d/azure-cli.list to this and try again

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

@bebound
Copy link
Contributor

bebound commented Jul 20, 2023

Azure CLI 2.50 is released in Debian 12, enjoy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request Packaging
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants