首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Snap向我指出了一个包,实际上,它并不存在。到底怎么回事?

Snap向我指出了一个包,实际上,它并不存在。到底怎么回事?
EN

Ask Ubuntu用户
提问于 2021-09-01 07:57:55
回答 1查看 384关注 0票数 2

所以,我只是做了下面的事情,这对我来说完全没有意义。(请忽略我的自定义$PS1)。

让我们尝试以错误的方式安装Vs代码(正确的包名是code),并遵循管理单元的建议:

代码语言:javascript
复制
(base) nagyg -> snap install vscode                                                                                     
error: snap "vscode" is not available on stable but is available to install on the following                            
       channels:                                                                                                        
                                                                                                                        
       candidate  snap install --candidate vscode                                                                       
       beta       snap install --beta vscode                                                                            
       edge       snap install --edge vscode                                                                            
                                                                                                                        
       Please be mindful pre-release channels may include features not completely tested or                             
       implemented. Get more information with 'snap info vscode'.                                                       

(base) nagyg -> snap install --beta vscode                                                                              
error: snap "vscode" is not available on beta but is available to install on the following                              
       channels:                                                                                                        
                                                                                                                        
       edge       snap install --edge vscode                                                                            
                                                                                                                        
       Get more information with 'snap info vscode'.                                                                    
                                                                                                                        
(base) nagyg -> snap install --edge vscode                                                                          
error: snap "vscode" is not available on latest/edge but other tracks exist.                                            
                                                                                                                        
       Please be mindful that different tracks may include different features. Get more information                     
       with 'snap info vscode'.                                                                                         
                                                                                                                        
(base) nagyg -> snap info vscode                                                                                        
error: no snap found for "vscode"    

...What?

vscode不存在。我明白了。但是为什么Snap会做错误的声明,并将我指向开发通道上一个不存在的包呢?这里发生什么事情?

EN

回答 1

Ask Ubuntu用户

发布于 2021-09-01 08:29:49

您使用错误的命令来安装。首先检查快速存储是个好主意,以确保您做对了。

这是正确的安装命令:

代码语言:javascript
复制
sudo snap install code --classic

如果您想了解snap和snap命令的内部工作方式,最好在Snapcraft论坛上询问,在那里开发人员有可能回答您的问题。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1361276

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档