[Others] 星火商店更新一直报这个错
Tofloor
poster avatar
沈拙言
deepin
2022-12-22 16:39
Author
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

命中:1 https://d.store.deepinos.org.cn  InRelease
正在读取软件包列表...
正在分析软件包的依赖关系树...
正在读取状态信息...
有 2 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
grep: /etc/upstream-release: 是一个目录
[apt-fast 08:35:16]
[apt-fast 08:35:16]Working... this may take a while.
E: 选项 spark-store:配置项后必须包含有形如“=<变量>”的具体指定。
[apt-fast 08:35:16]Package manager quit with exit code.

发行版是Linux mint 21, 基于Ubuntu22.04

配置项后必须包含有形如“=<变量>”的具体指定。

用aptss命令一直这样,一直很好奇是因为什么啊

Reply Favorite View the author
All Replies
神末shenmo
deepin
Spark-App
Q&A Team
2022-12-22 17:28
#1
/etc/upstream-release

这个目录删了试试

Reply View the author
沈拙言
deepin
2022-12-22 17:32
#2
神末shenmo
/etc/upstream-release

这个目录删了试试

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

命中:1 https://d.store.deepinos.org.cn  InRelease
正在读取软件包列表...
正在分析软件包的依赖关系树...
正在读取状态信息...
有 2 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
[apt-fast 09:31:28]
[apt-fast 09:31:28]Working... this may take a while.
E: 选项 spark-store:配置项后必须包含有形如“=<变量>”的具体指定。
[apt-fast 09:31:28]Package manager quit with exit code.

还是不行

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2022-12-22 17:33
#3
沈拙言
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

命中:1 https://d.store.deepinos.org.cn  InRelease
正在读取软件包列表...
正在分析软件包的依赖关系树...
正在读取状态信息...
有 2 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
[apt-fast 09:31:28]
[apt-fast 09:31:28]Working... this may take a while.
E: 选项 spark-store:配置项后必须包含有形如“=<变量>”的具体指定。
[apt-fast 09:31:28]Package manager quit with exit code.

还是不行

不清楚了。。。。奇怪

手动升级到最新商店版本试试吧,不过大概也没法修复?aptss这块有一阵没动了

Reply View the author
沈拙言
deepin
2022-12-22 17:52
#4
神末shenmo

不清楚了。。。。奇怪

手动升级到最新商店版本试试吧,不过大概也没法修复?aptss这块有一阵没动了

嗯嗯,目前影响也不大。

Reply View the author
10******38@qq.com
deepin
2022-12-22 19:42
#5

E: 选项 spark-store:配置项后必须包含有形如“=<变量>”的具体指定。

这个看着像是某个配置文件中混入中文字符,解析配置时乱码报错了,E:  这里就是无法解析的乱码配置。可能卸载掉商店后使用命令行重装一下商店可以解决。如果有一定linux基础的话,可以strace跟踪执行看看是读到哪个文件时报错了。

Reply View the author
沈拙言
deepin
2022-12-22 20:26
#6
10******38@qq.com

E: 选项 spark-store:配置项后必须包含有形如“=<变量>”的具体指定。

这个看着像是某个配置文件中混入中文字符,解析配置时乱码报错了,E:  这里就是无法解析的乱码配置。可能卸载掉商店后使用命令行重装一下商店可以解决。如果有一定linux基础的话,可以strace跟踪执行看看是读到哪个文件时报错了。

卸载重装没用,E: 是用来修饰提示信息字体颜色的。网上能搜到的相关信息只有apt install -force,我在aptss的代码里没找到force这个参数

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2023-01-07 07:50
#7

https://gitee.com/deepin-community-store/spark-store/releases/tag/4.2test1

这个版本安装后aptss会有报错了,可以发出来看看

Reply View the author
沈拙言
deepin
2023-01-07 20:57
#8
神末shenmo

https://gitee.com/deepin-community-store/spark-store/releases/tag/4.2test1

这个版本安装后aptss会有报错了,可以发出来看看

grep: /etc/upstream-release: 是一个目录
[apt-fast 12:55:50]
[apt-fast 12:55:50]Working... this may take a while.
[apt-fast 12:55:50]正在工作中,请稍等
E: 选项 typora:配置项后必须包含有形如“=<变量>”的具体指定。
[apt-fast 12:55:50]Package manager quit with exit code.Here is the log
[apt-fast 12:55:50]包管理器以错误代码退出.日志如下
[apt-fast 12:55:50]
Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2023-01-07 21:26
#9
沈拙言
grep: /etc/upstream-release: 是一个目录
[apt-fast 12:55:50]
[apt-fast 12:55:50]Working... this may take a while.
[apt-fast 12:55:50]正在工作中,请稍等
E: 选项 typora:配置项后必须包含有形如“=<变量>”的具体指定。
[apt-fast 12:55:50]Package manager quit with exit code.Here is the log
[apt-fast 12:55:50]包管理器以错误代码退出.日志如下
[apt-fast 12:55:50]

好家伙,还是这样

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2023-01-07 21:32
#10

apt-get -y --print-uris "install g++"

看下输出

Reply View the author
沈拙言
deepin
2023-01-07 21:36
#11
神末shenmo

apt-get -y --print-uris "install g++"

看下输出

E: 无效的操作 install g++
Reply View the author
沈拙言
deepin
2023-01-07 21:39
#12
神末shenmo

apt-get -y --print-uris "install g++"

看下输出

我找到报错的地方了。在 /opt/durapps/spark-store/bin/apt-fast/ss-apt-fast文件里

if [ "$_APTMGR" == "apt" ]; then
    #APT_SCRIPT_WARNING=(-o "Apt::Cmd::Disable-Script-Warning=true")
fi

这个-o的选项导致的,我百度了一下,好像是为了去除 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.这个警告的。然后我直接直接把这段if注释掉,就可以正常更新了。

Reply View the author
沈拙言
deepin
2023-01-08 21:09
#13
沈拙言

我找到报错的地方了。在 /opt/durapps/spark-store/bin/apt-fast/ss-apt-fast文件里

if [ "$_APTMGR" == "apt" ]; then
    #APT_SCRIPT_WARNING=(-o "Apt::Cmd::Disable-Script-Warning=true")
fi

这个-o的选项导致的,我百度了一下,好像是为了去除 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.这个警告的。然后我直接直接把这段if注释掉,就可以正常更新了。

但是这么干开机的时候内存搜搜往上飙

Reply View the author