使用 snap 的一些問題

使用 snap 的一些問題

每次使用 snap 命令時我都會收到此訊息:

2017/06/17 16:54:53.238356 main.go:136: PANIC argument "ack"'s "forutsetningsfil>" should have <>s
panic: argument "ack"'s "forutsetningsfil>" should have <>s [recovered]
    panic: argument "ack"'s "forutsetningsfil>" should have <>s

goroutine 1 [running]:
panic(0x55e1d83e20c0, 0xc420164e60)
    /usr/lib/go-1.7/src/runtime/panic.go:500 +0x1a5
main.main.func1()
    /build/snapd-jGajdd/snapd-2.25+17.04/_build/src/github.com/snapcore/snapd/cmd/snap/main.go:282 +0x82
panic(0x55e1d83e20c0, 0xc420164e60)
    /usr/lib/go-1.7/src/runtime/panic.go:458 +0x247
github.com/snapcore/snapd/logger.Panicf(0x55e1d80fffc7, 0x20, 0xc4201399e8, 0x2, 0x2)
    /build/snapd-jGajdd/snapd-2.25+17.04/_build/src/github.com/snapcore/snapd/logger/logger.go:72 +0x17a
main.lintArg(0x55e1d80efb9f, 0x3, 0xc42000d980, 0x11, 0xc4200be560, 0x10, 0x0, 0x0)
    /build/snapd-jGajdd/snapd-2.25+17.04/_build/src/github.com/snapcore/snapd/cmd/snap/main.go:136 +0x1ad
main.Parser(0xc420139d40)
    /build/snapd-jGajdd/snapd-2.25+17.04/_build/src/github.com/snapcore/snapd/cmd/snap/main.go:203 +0x8e9
main.run(0xc400000000, 0x55e1d8485d18)
    /build/snapd-jGajdd/snapd-2.25+17.04/_build/src/github.com/snapcore/snapd/cmd/snap/main.go:302 +0x36
main.main()
    /build/snapd-jGajdd/snapd-2.25+17.04/_build/src/github.com/snapcore/snapd/cmd/snap/main.go:287 +0x197

它是全新安裝的 Ubuntu 17.04

答案1

感謝 Gustavo 幫助我修復它 https://forum.snapcraft.io/t/snap-not-working-in-terminal-on-ubuntu-17-10/2593/7

為了使 snap 正常運作,您必須在使用 snap 命令之前在終端機中輸入以下內容:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

我猜他們很快就會修復它:-)。

答案2

17.10(可能還有其他版本)中的兩個翻譯文件 nb 和 hr 中存在錯誤。 snapd 中還有一個錯誤,它會將本應無害的警告變成完全恐慌。我們正在修復這些問題(我希望將它們納入 2.29,但肯定是 2.30),但同時刪除或重命名適當的內容snappy.mo應該足以解鎖您。

答案3

這是由損壞的翻譯文件引起的。

嘗試運行:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
snap --version

我們將審查邏輯,以便它是固定的,這樣在這些情況下就不會出現恐慌。

相關內容