skip to Main Content

Note, selecting ‘code:amd64’ instead of ‘./code_1.82.0-1694039253_amd64.deb’
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.

I tried sudo apt –fix-broken install and no luck I have no clue

2

Answers


  1. Bruh Simply install it through graphical interface if you are using ubuntu distribution of Linux then simply done this

    1. Ubuntu Software Click on this
    2. Install From Here

    Method 2: Installing VS Code as a .deb Package (for Debian/Ubuntu-based systems)
    Open your terminal.

    Download the VS Code .deb package using curl or your web browser. You can find the latest .deb package URL on the official Visual Studio Code website: https://code.visualstudio.com/download.

    Once downloaded, navigate to the directory containing the .deb package in your terminal.

    Install VS Code using the following command (replace with the actual package name you downloaded):

    sudo dpkg -i <package-name>
    

    and if you are still facing any issues after installing this run the command below

    sudo apt --fix-broken install
    

    Hope it Works for you

    Login or Signup to reply.
  2. The easier one.

    Try running uname -m or arch. If the output is x86_64, you have the right platform, and you should try my second suggestion. If it is something like arm32 or arm64, download the corresponding deb from from the downloads page.

    The automated script

    Save this script in your ~/Downloads folder as install_vscode.sh

    sudo apt-get install wget gpg apt-transport-https
    wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
    sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
    sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
    rm -f packages.microsoft.gpg
    sudo apt update
    sudo apt install code # or code-insiders
    

    Then run the following commands in the terminal:

    cd ~/Downloads
    chmod +x ./install_vscode.sh
    sh ./install_vscode.sh
    

    it should work.

    Edit: If you have snap store installed, search code (or code-insiders) in the gui and install, or the following command in the terminal: sudo snap install --classic code # or code-insiders

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search