azurelinux icon indicating copy to clipboard operation
azurelinux copied to clipboard

URGENT: No Package manager installed with Mariner 2.0

Open adiiot-1316 opened this issue 3 years ago • 5 comments

Hi ,

I am trying to install few packages , but unfortunately no package manager like Dnf , TDNF, apt , yum is installed. What could be the reason? Is there a way to install the package manager manually using CURL etc?

Details of Mariner OS

DISTRIB_ID="Mariner" DISTRIB_RELEASE="2.0.20220824" DISTRIB_CODENAME=Mariner DISTRIB_DESCRIPTION="CBL-Mariner 2.0.20220824" CBL-Mariner 2.0.20220824 NAME="Common Base Linux Mariner" VERSION="2.0.20220824" ID=mariner VERSION_ID="2.0"

Please let me know if you need any additional details.

adiiot-1316 avatar Sep 30 '22 07:09 adiiot-1316

This seems a little odd, can you please give more info on what are you using ? Could you please give us some steps to repro this. What did you do, what was the expectation and what happened. We do have rpm/tdnf installed in the image by default.

Please let me know if you need any additional details.

What is the output of:

  • which tdnf
  • which rpm
  • which yum

I unfortunately am unable to repro it, and it works as expected:

image

The az-cli command to spawn this vm:

az vm create --name test-vm --resource-group mfrw-rg --location centralindia --image MicrosoftCBLMariner:cbl-mariner:cbl-mariner-2:latest --os-disk-size-gb 32 --admin-username mfrw

mfrw avatar Oct 01 '22 02:10 mfrw

Thanks Wani for your prompt response,

I tried the above commands and below are the responses.

iotedge-user@iotedge-vm [ ~ ]$ which tdnf which: no tdnf in (/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin) iotedge-user@iotedge-vm [ ~ ]$ which yum which: no yum in (/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin) iotedge-user@iotedge-vm [ ~ ]$ which rpm which: no rpm in (/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin)

adiiot-1316 avatar Oct 03 '22 06:10 adiiot-1316

This is very strange :(

Please feel free to reach-out offline; we would want some post-mortem of this issue so that it does not happen again.

Also, can you please try to spawn a vm using the following command and see if you can hit the issue again:

az vm create --name test-vm --resource-group my-rg --location centralindia --image MicrosoftCBLMariner:cbl-mariner:cbl-mariner-2:latest --os-disk-size-gb 32 --admin-username azureuser

Please replace:

  • my-rg -> with your appropriate resource-group

mfrw avatar Oct 04 '22 03:10 mfrw

We have been using Azure Edge IoT i.e. azure iot edge for linux on windows (eflow) in which CBL Mariner is pre-installed. But no package manager is installed in that CBL mariner .

adiiot-1316 avatar Oct 10 '22 05:10 adiiot-1316

Hi @adiiot-1316 , this may actually be expected. EFLOW is a very purpose-built offering, whose composition may not include the package manager. Tagging @adithyaj and @josephknierman

christopherco avatar Oct 21 '22 06:10 christopherco