CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

[应用商店]无法正常添加源

Open 120MF opened this issue 1 year ago • 4 comments

[应用商店]添加源假成功问题

复现过程

  1. 点击应用商店
  2. 点击更多应用
  3. 输入链接后点击添加
  4. 商店提示成功,但是实际应用未发生任何改变 297823307-f7ef163c-cf6e-474b-9a5b-691ec2f8c32b

以下是系统日志抓包 sudo journalctl -xef -u casaos-app-management

Jan 25 00:43:40 debian casaos-app-management[223807]: 2024-01-25T00:43:40.848+0800 error store compose app not found, thus no update available {"storeAppID": "aria2-pro", "func": "service.(*ComposeApp).IsUpdateAvailable", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_app.go", "line": 181} 接着报了一堆类似的错,都是无法找到特定软件 最后又自动切换回默认源 Jan 25 00:44:30 debian casaos-app-management[223807]: 2024-01-25T00:44:30.875+0800 info Using default appstore {"func": "service.(*AppStoreManagement).ComposeApp", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore_management.go", "line": 397}

个人分析是casaos的应用商城限定默认除了自定义安装的app以外,其它单个app必须在选定源内出现,否则就会添加软件源失败,并且弹出“添加成功”的提示 为证实,添加了含有aria2-pro的CasaOS-AppStore-Play源,换源成功。

将目前的逻辑从切换源更改为添加源就能解决此问题 与 #1620 应该是同一问题

120MF avatar Jan 24 '24 17:01 120MF

无论你在那个框添加啥都会提示添加成功 请问你添加的是哪个源? 如果你是从这个地方复制的源,可能是复制的时候把copied也复制进去了,类似这样"https://play.cuse.eu.org/Cp0204-AppStore-Play.zip

copied" image

raller1028 avatar Feb 27 '24 06:02 raller1028

其次没理解你说的切换源是什么意思,应用商店只有添加源

raller1028 avatar Feb 27 '24 06:02 raller1028

0.4.7添加成功,但是重装0.4.8后反而失败,两次重装均失败

0123guoxiao avatar Mar 27 '24 14:03 0123guoxiao

https://play.cuse.eu.org/Cp0204-AppStore-Play-arm.zip 如果你的网络无法连接 play.cuse.eu.org ,你可以尝试将域名替换为 p.0x69.win (不保证可用性)。 将上面的域名更换为:https://p.0x69.win/Cp0204-AppStore-Play-arm.zip 已成功使用。用正常网络即可..不要用科学网络加载即可.

wangting08180 avatar Apr 04 '24 03:04 wangting08180