Can't Install Latest VS Code: Dependency Issues with .deb Package
Subject: Dependency Issue While Installing Latest VS Code .deb Package on Linux (.deb)
Description: When attempting to install the latest version of Visual Studio Code (1.96.4-1736991114) via the .deb installer on my Linux system, the installation fails with the following error: "Error: Cannot satisfy dependencies".
I am currently using an older version of Visual Studio Code, and it is functional. However, I want to update to the latest version, and this issue blocks the installation.
Steps to Reproduce:
Download the .deb file for the latest VS Code version from the official website. Open the .deb file using QAPT Package Installer. Attempt to install the package. Expected Behavior: The package should install successfully without any dependency errors.
Actual Behavior: The installer displays an error message: "Error: Cannot satisfy dependencies."
I am facing this error since December 2024.
System Details:
Current VS Code Version: 1.92.2 fee1edb8d6d72a0ddff41e5f71a671c23ed924b9 x64 Installer Used: QAPT Package Installer(default deb package installer in kubuntu) OS: Kubuntu 24.04.1 LTS x86_64 Package Version: 1.96.4-1736991114
The installer recommends using the older version available in the software channel, but I specifically need the latest version. Dependency-related output from dpkg or apt is not provided but can be shared if required. Potential Cause: It seems that the .deb package might depend on specific versions of libraries that are not currently installed or not available in the repositories for my distribution.
experienced same dialog using GUI
cli installation worked for me
sudo dpkg -i code_1.97.0-1738713410_amd64.deb
Probably fixed by now?
i still use the cli for this
Same issue with 1.107.1-1765982436_amd64.deb. CLI installation works. According to this: https://askubuntu.com/questions/1526959/how-to-fix-error-dependency-is-not-satisfiable
it's a renaming of the package. I can find the old package name in synaptic but it seems to be a dummy package. The new one seems to have a t64 added to the package name.
I reproduced this with the exact 1.96.4-1736991114 amd64 DEB on Ubuntu 24.04.1 with Kubuntu’s QApt 3.0.5-2build3 and Plasma 5.27.11. QApt showed both messages in the screenshot: “Error: Cannot satisfy dependencies” (Install Package disabled) and the separate warning about an older version in a software channel. The 1.107.1 package mentioned above, Stable 1.148.0, and Insiders 1.149.0 also failed QApt’s check. APT resolved all four original DEBs on the same package database.
Why the installers disagree: on Noble, the installed libasound2t64 declares Provides: libasound2 (= 1.2.11-1build2). That satisfies VS Code’s libasound2 (>= 1.0.17). I compared two otherwise identical test packages: QApt disabled Install for Depends: libasound2 (>= 1.0.17) but enabled it for Depends: libasound2t64 (>= 1.0.17). APT accepted both. The same test with GTK gave the same result; both tools correctly rejected a genuinely missing dependency.
Workaround: install the download with APT rather than double-clicking it in QApt. From the directory containing the DEB, for example:
# Optional: preview the plan without installing
apt -s install ./code_1.96.4-1736991114_amd64.deb
sudo apt install ./code_1.96.4-1736991114_amd64.deb
Substitute the filename you actually downloaded. There is no need to replace libraries by hand, force dependencies, or modify the DEB.
Upstream: KDE bug 354477 — virtual dependencies are not handled. QApt’s local-DEB dependency checker skips a dependency when it cannot find a concrete package by that name, rather than considering its providers. That file matches the one in Ubuntu’s QApt source package.
Verification scope: the attached recording shows the real QApt dialogs, the one-dependency comparison, APT’s upgrade plan, and a file opened and saved by the extracted Insiders binary. APT’s checks on the official DEBs were simulations; an actual APT transaction installed a script-free control with the complete original dependency list. The previous 1.92.2 DEB was unpacked, not configured. This verifies the dependency diagnosis, not a full end-to-end installation of the official packages.
https://github.com/user-attachments/assets/19370f3a-c92e-4976-b04b-6267564eb25a