【问题标题】:Snap throws error when trying to run 'code' (VSCode) or any other snap packageSnap throws error when trying to run \'code\' (VSCode) or any other snap package
【发布时间】:2022-12-16 13:15:12
【问题描述】:

Suddenly Snap has started throwing error when ever i try to run any app such as VSCode, Spotify and Bitwarden that is installed via snap, this was not the case until yesterday and the only notable change i have made to my system is that i have installed nerd-fonts for my terminal which i assume to not be of any problem here


Here are the commands i tried that have thrown this error -

foo@bar:~$ code
foo@bar:~$ spotify
foo@bar:~$ bitwarden
foo@bar:~$ snap run <app>

所有这些命令都会抛出相同的新错误,直到现在才出现这种情况 -

/snap/snapd/17883/usr/lib/snapd/snap-confine: symbol lookup error: /snap/snapd/17883/usr/lib/snapd/snap-confine: undefined symbol: , version GLIBC_2.2.5

如果有帮助,这是我的 /var/log/syslog -

foo@bar:~$ tail -f /var/log/syslog
Dec  8 19:44:45 pop-os-darshit rtkit-daemon[1226]: message repeated 7 times: [ Supervising 7 threads of 4 processes of 1 users.]
Dec  8 19:45:19 pop-os-darshit systemd[2407]: Started VTE child process 74376 launched by gnome-terminal-server process 67723.
Dec  8 19:45:21 pop-os-darshit kernel: [44347.768056] IPv6: MLD: clamping QRV from 1 to 2!
Dec  8 19:45:27 pop-os-darshit kernel: [44353.910138] IPv6: MLD: clamping QRV from 1 to 2!
Dec  8 19:45:31 pop-os-darshit gnome-shell[2622]: g_source_remove: assertion 'tag > 0' failed
Dec  8 19:45:33 pop-os-darshit kernel: [44359.851088] IPv6: MLD: clamping QRV from 1 to 2!
Dec  8 19:45:39 pop-os-darshit kernel: [44365.789843] IPv6: MLD: clamping QRV from 1 to 2!
Dec  8 19:45:45 pop-os-darshit kernel: [44371.937758] IPv6: MLD: clamping QRV from 1 to 2!
Dec  8 19:45:51 pop-os-darshit kernel: [44377.872728] IPv6: MLD: clamping QRV from 1 to 2!
Dec  8 19:45:57 pop-os-darshit kernel: [44383.811886] IPv6: MLD: clamping QRV from 1 to 2!
Dec  8 19:46:03 pop-os-darshit kernel: [44389.957269] IPv6: MLD: clamping QRV from 1 to 2!
Dec  8 19:46:04 pop-os-darshit systemd[2407]: Started snap.code.code.6db8cb33-bf07-44a8-8db5-949e29732cd7.scope.
Dec  8 19:46:09 pop-os-darshit kernel: [44395.990775] IPv6: MLD: clamping QRV from 1 to 2!

日志中特别感兴趣的行

  • Dec 8 19:46:04 pop-os-darshit systemd[2407]: Started snap.code.code.6db8cb33-bf07-44a8-8db5-949e29732cd7.scope.

我试图用谷歌搜索这个错误,但没有找到完全匹配的人

【问题讨论】:

    标签: visual-studio-code snapcraft snap


    【解决方案1】:

    Same here on Ubuntu 22.10 with latest updates when trying to run the Snap Store.

    ▶ snap-store
    cut: cut: no version information available (required by cut)
    cut: cut: no version information available (required by cut)
    cut: cut: no version information available (required by cut)
    cut: cut: no version information available (required by cut)
    cut: cut: no version information available (required by cut)
    cut: cut: no version information available (required by cut)
    cut: symbol lookup error: cut: undefined symbol:
    /snap/snap-store/638/usr/bin/snap-store: symbol lookup error: /snap/snap-store/638/gnome-platform/usr/lib/x86_64-linux-gnu/libtasn1.so.6: undefined symbol: , version GLIBC_2.2.5
    

    【讨论】:

      【解决方案2】:

      Got a lot of similar issue on PopOS! 22.04 with:

      • 陆行达
      • Microk8s
      • VScode

      试图从源代码安装它们,没有任何改变。

      更新: 我试图收集更多信息:

      snap -vvv run juju

      panic: runtime error: invalid memory address or nil pointer dereference [recovered]
          panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x563535c52d95]
      
      goroutine 1 [running]:
      main.main.func1()
          /build/snapd/parts/snapd-deb/build/cmd/snap/main.go:492 +0x95
      panic(0x5635362f7840, 0x563536971900)
          /usr/lib/go-1.13/src/runtime/panic.go:679 +0x1b6
      main.run(0xc0003f3db8, 0xe)
          /build/snapd/parts/snapd-deb/build/cmd/snap/main.go:559 +0x375
      main.main()
          /build/snapd/parts/snapd-deb/build/cmd/snap/main.go:497 +0x371
      

      【讨论】:

        猜你喜欢
        • 2022-11-20
        • 2022-12-01
        • 2021-03-09
        • 2022-12-01
        • 1970-01-01
        • 2016-07-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多