Skip to content

[BUG] README installation step uses fixed Ubuntu 20.04 package, incompatible with other Ubuntu bases #6

@Carlos12328

Description

@Carlos12328

Type: Documentation issue (README installation instructions)

Describe the bug

The README installation instructions for PowerShell use a package link fixed for Ubuntu 20.04.
On Linux Mint based on Ubuntu 22.04/24.04, this causes downgrade warnings and directory errors.

To Reproduce
Steps to reproduce the behavior:

run the commands below according to the README

sudo apt update
sudo apt install -y wget apt-transport-https software-properties-common
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

Expected behavior

The installation should detect the system's Ubuntu version and use the correct package link for that version,
without causing downgrade warnings or errors.

Screenshots/Output

dpkg: aviso: a fazer downgrade a packages-microsoft-prod de 1.2-ubuntu24.04 para 1.0-ubuntu20.04.1
(Lendo banco de dados ... 544615 ficheiros e diretórios atualmente instalados.)
A preparar para desempacotar packages-microsoft-prod.deb ...
A descompactar packages-microsoft-prod (1.0-ubuntu20.04.1) sobre (1.2-ubuntu24.04) ...
dpkg: aviso: não foi possível apagar o directório antigo '/etc/debsig/policies/EB3E94ADBE1229CF': Diretório não vazio
dpkg: aviso: não foi possível apagar o directório antigo '/etc/debsig/policies': Diretório não vazio
dpkg: aviso: não foi possível apagar o directório antigo '/etc/debsig': Diretório não vazio
Configurando packages-microsoft-prod (1.0-ubuntu20.04.1) ...

Environment (please complete the following information):

  • OS: Linux Mint 22.2 (based on Ubuntu 24.04)
  • PowerShell Version: I didn't install PowerShell because the error occurs before the installation step.
  • yt-dlp Version: not relevant for this issue

Additional context

Suggest updating the README to instruct users to use the package that matches their Ubuntu base version
or link to the Microsoft instructions to detect correct package automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions