{"record":{"id":"a769124ec54209bf","repo":"GopeedLab/gopeed","slug":"unsupported-update-channel-for-linux-s","errorCode":null,"errorMessage":"unsupported update channel for Linux: %s","messagePattern":"unsupported update channel for Linux: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/updater/updater_linux.go","lineNumber":20,"sourceCode":"\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os/exec\"\n)\n\nfunc install(killSignalChan chan<- any, updateChannel, packagePath, destDir string) (bool, error) {\n\tkillSignalChan <- nil\n\tswitch updateChannel {\n\tcase \"linuxDeb\":\n\t\treturn true, installByDeb(packagePath)\n\tcase \"linuxFlathub\":\n\t\treturn true, installByFlathub()\n\tcase \"linuxSnap\":\n\t\treturn true, installBySnap()\n\tdefault:\n\t\treturn false, fmt.Errorf(\"unsupported update channel for Linux: %s\", updateChannel)\n\t}\n}\n\n// executeInTerminal tries to execute a command in one of several common terminal emulators\nfunc executeInTerminal(command string) error {\n\tterminals := []string{\n\t\t\"gnome-terminal\", // GNOME\n\t\t\"konsole\",        // KDE\n\t\t\"xfce4-terminal\", // XFCE\n\t\t\"xterm\",          // X11\n\t}\n\n\tcommand = fmt.Sprintf(`echo \"Starting update...\" && echo \"[CMD] %s\" && %s`, command, command)\n\n\tfor _, term := range terminals {\n\t\tif _, err := exec.LookPath(term); err == nil {\n\t\t\tvar cmd *exec.Cmd\n\t\t\tswitch term {","sourceCodeStart":2,"sourceCodeEnd":38,"githubUrl":"https://github.com/GopeedLab/gopeed/blob/7b7327ffb30816273a74b142cccc0bc10c5a4c67/cmd/updater/updater_linux.go#L2-L38","documentation":"Error \"unsupported update channel for Linux: %s\" thrown in GopeedLab/gopeed.","triggerScenarios":"Thrown at cmd/updater/updater_linux.go:20 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b7327ffb30816273a74b142cccc0bc10c5a4c67","analyzedAt":"2026-08-16T02:51:03.250Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}