Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

软件包名称冲突 #3

Open
taotieren opened this issue Sep 20, 2024 · 6 comments
Open

软件包名称冲突 #3

taotieren opened this issue Sep 20, 2024 · 6 comments

Comments

@taotieren
Copy link

taotieren commented Sep 20, 2024

❯ 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
Copy link
Member

zw963 commented Sep 20, 2024

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
Copy link
Author

如果安装 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
Copy link
Author

taotieren commented Sep 21, 2024

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

@zw963
Copy link
Member

zw963 commented Sep 21, 2024

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

@zw963
Copy link
Member

zw963 commented Oct 26, 2024

你帮想个名字呗。

@taotieren
Copy link
Author

mypubip ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants