PowerShell 7.0.0 snap not working on an Ubuntu 20.04 pre-release

I’ve tried to install PowerShell on Ubuntu 20.04, but ran into issies with what looks like a glibc problem:

$ sudo snap install powershell --classic
powershell 7.0.0 from Microsoft PowerShell✓ installed
[2020-04-17 20:20:22] tsm@hawk:~
$ pwsh
Failed to load ���, error: /snap/powershell/104/opt/powershell/../../lib/x86_64-linux-gnu/librt.so.1: undefined symbol: __clock_nanosleep, version GLIBC_PRIVATE
Failed to bind to CoreCLR at '/snap/powershell/104/opt/powershell/'
Failed to create CoreCLR, HRESULT: 0x80008088

Some info about my system and the snap version that I have installed:

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu Focal Fossa (development branch)"
$ snap info powershell
name:      powershell
summary:   PowerShell for every system!
[...]
installed:          7.0.0            (104) 67MB classic

This is a known issue. Microsoft are working on a fix. @TravisEz13 can advise further :slight_smile: You might have better luck with powershell-preview for now…

The PowerShell issue tracking this is here: https://github.com/PowerShell/PowerShell-Snap/issues/65

We have asked for help from @sergiusens

1 Like