crystal-china / myip

返回你的公网 IP 及访问外网的公网 IP
MIT License
1 stars 0 forks source link

软件包名称冲突 #3

Open taotieren opened 1 week ago

taotieren commented 1 week ago
❯ yay -Fy myip
aur-repo/myip-git 0.4.9.r2.gc771a92-1 [已安装]
usr/bin/myip
aur-repo/python-scripts 3.0.0-2
usr/bin/myip
zw963 commented 1 week ago

Hi, 你新加的 python-scripts 这个 aur-repo 包看起来也有一个 /usr/bin/myip 命令吗? 这我不知道咋整了,只能我这个包换个名字吗?

奇怪,那个 myip 在我们本地运行没有效果。=

image

下面的命令本地运行也没有结果, 缺少 answer section.

 ╰─ $ dig +short myip.opendns.com @resolver1.opendns.com

 ╰─ $ dig myip.opendns.com @resolver1.opendns.com

; <<>> DiG 9.20.1 <<>> myip.opendns.com @resolver1.opendns.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61713
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1410
;; QUESTION SECTION:
;myip.opendns.com.              IN      A

;; AUTHORITY SECTION:
opendns.com.            916     IN      SOA     auth1.opendns.com. noc.opendns.com. 1726829305 16384 2048 1048576 2560

;; Query time: 96 msec
;; SERVER: 2620:119:35::35#53(resolver1.opendns.com) (UDP)
;; WHEN: Fri Sep 20 18:49:30 CST 2024
;; MSG SIZE  rcvd: 91

但在我国外的服务器上运行可以,你那边也是那样吗?

taotieren commented 1 week ago

如果安装 python-scripts 会提示文件冲突

❯ yay -S python-scripts
Sync Explicit (1): python-scripts-3.0.0-2
正在解析依赖关系...
正在查找软件包冲突...

软件包 (1)               新版本   净变化

aur-repo/python-scripts  3.0.0-2  0.12 MiB

全部安装大小:  0.12 MiB

:: 进行安装吗? [Y/n]
(1/1) 正在检查密钥环里的密钥
(1/1) 正在检查软件包完整性
(1/1) 正在加载软件包文件
(1/1) 正在检查文件冲突
错误:无法提交处理 (有冲突的文件)
python-scripts: 文件系统中存在 /usr/bin/myip (由 myip-git 所有)
发生错误,没有软件包被更新。
-> error installing repo packages
taotieren commented 1 week ago

myip-gitpython-scripts 需要其中一个进行文件名修改。 查看发行历史 scripts/history python-scripts 最早提交记录可以追溯到 2015 年。根据先后原则,建议 myip 改个不冲突的文件名

zw963 commented 1 week ago

名字果然起的还是太简单了,我想想换什么名字。