其他分享
首页 > 其他分享> > 曾经遇见过的报错命令

曾经遇见过的报错命令

作者:互联网

1. 

症状: 运行 sudo apt list --upgradable | grep "rustc" 的时候出现 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

原因: apt 并不是一个非常好的命令行工具,它的输出并非总能被其它命令行工具解析,比如它会有个进度条,而这个进度条会影响其它命令行工具解析它的输出

解决方案:可以使用apt-get和apt-cache

解决方案来源:https://askubuntu.com/questions/990823/apt-gives-unstable-cli-interface-warning

 

标签:遇见,进度条,解决方案,apt,命令,报错,命令行,interface,工具
来源: https://www.cnblogs.com/yinhuachen/p/15920281.html