vscode: Can't upgrade on Ubuntu 18.04

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.78
  • OS Version: Ubuntu 18.04

Steps to Reproduce:

  1. sudo apt upgrade code
ubuntu@oracle-vm:~$ sudo apt upgrade code

Reading package lists... Done
Building dependency tree       
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:
 code : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1.6 is to be installed
E: Broken packages

The version available in the apt repo will have to be built on a system using an older version of glibc. Bear in mind that 18.04 doesn’t hit EoL until 2028, with security patches available on the free tier for ESM from Canonical.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 2
  • Comments: 24 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Deepak is working on that

@cobalt2727 @deepak1556 can confirm that code-insiders works I would be very good if the tunnel repo also used this ubuntu bionic base image though since technically the deb dep-lists are wrong until code-tunnel-insiders is also corrected. Screenshot from 2023-06-20 17-41-33

The fix in this PR only affects the GUI code-insiders binary, the tunnel binary code-tunnel-insiders is built on a different base image and remains unaffected. /cc @connor4312 in case you want to track https://github.com/microsoft/vscode/issues/181720#issuecomment-1596456924 in a new issue.

This bug has been fixed in the latest release of VS Code Insiders!

@cobalt2727, you can help us out by commenting /verified if things are now working as expected.

If things still don’t seem right, please ensure you’re on version 0e9c2fa760932b13f81516aff15f2b0112aa6eeb of Insiders (today’s or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn’t working as expected.

Happy Coding!

Sorry for the silence, I was on vacation. I will address the tunnel binary dependency this week.

@joaomoreno @deepak1556 refer to PR https://github.com/microsoft/vscode-linux-build-agent/pull/29 I am unable to test as I don’t have your tooling but I have no reason to believe it won’t work

@cobalt2727 I believe you are hitting this issue when using arm version of VSCode ? We had to bump our build agents for armhf and arm64 from debian stretch to buster for building with C++17 support that is required by V8 that comes with Electron 22. I would like to avoid rolling back the build agents, I will see if the symbol version can be locked for the native module instead.

Why so when you didn’t for x86_64 builds? Using debian as build agents was a bad idea in the first place though since support has long ended for them. You should be using Ubuntu LTS agents. Even Ubuntu 16.04 is still getting security updates.

What tool chain do you require that is different on armhf/arm64? Cpp-17 support is a pretty low bar and repo gcc/g++ toochains on the older Ubuntu LTSs have it.

All of this questioning could be avoided if you distro repo was open source.

@deepak1556 please revert to distro 9b27f67c15920833310305fce2d42cf2426f34ee as was last used in release 1.77.3

Unfortunately your repository https://github.com/microsoft/vscode-distro is closed source and we have no ability to determine what has been done to break compatibility (ie: raise GLIBC requirements)

as you are likely aware, this has broken the requirements you have set https://code.visualstudio.com/docs/supporting/requirements

VS Code is supported on the following platforms:

Windows 10 and 11 (32-bit and 64-bit) OS X High Sierra (10.13+) Linux (Debian): Ubuntu Desktop 16.04, Debian 9 Linux (Red Hat): Red Hat Enterprise Linux 7, CentOS 7, Fedora 34

Additional Linux requirements GLIBCXX version 3.4.21 or later GLIBC version 2.17 or later

Same issue on Jetson Nano running Ubuntu 18.04.