[Repository/Mirror] deepin20.2无法安装git
Tofloor
poster avatar
ForMat
deepin
2021-04-11 04:43
Author

系统版本:20.2

内核版本:5.4

 

Reply Favorite View the author
All Replies
Ziggy
deepin
2021-04-11 04:53
#1
Reply View the author
SamLukeYes
deepin
2021-04-11 05:18
#2

sudo apt update 看看输出

Reply View the author
ForMat
deepin
2021-04-11 05:47
#3

换了阿里的源,成功安装了,问题解决

Reply View the author
Hello
deepin
2021-04-11 07:41
#4

你。。。是不是动过了源。。。

Reply View the author
deepinuser17
deepin
2021-04-11 08:44
#5

深度自带的git没有问题:

 

$ dpkg -l git
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version                  Architecture Description
+++-==============-========================-============-===================================================
ii  git            1:2.20.1.1-2+deb10u3+dde amd64        fast, scalable, distributed revision control system
Reply View the author
残月妖刀
deepin
2021-04-11 23:55
#6
ForMat

换了阿里的源,成功安装了,问题解决

我换了源,执行sudo apt-get update 后,显示的源还是deepin的源,换不了,这是为什么??

 
Reply View the author
残月妖刀
deepin
2021-04-11 23:56
#7
deepinuser17

深度自带的git没有问题:

 

$ dpkg -l git
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version                  Architecture Description
+++-==============-========================-============-===================================================
ii  git            1:2.20.1.1-2+deb10u3+dde amd64        fast, scalable, distributed revision control system

执行了你的操作之后,还是没有,显示的是

un git  <无> <无> (无描述)

Reply View the author
残月妖刀
deepin
2021-04-12 00:01
#8
残月妖刀

我换了源,执行sudo apt-get update 后,显示的源还是deepin的源,换不了,这是为什么??

 

Reply View the author
SamLukeYes
deepin
2021-04-12 00:03
#9
残月妖刀

你的主仓库呢?就那个带 apricot 的,去哪了

Reply View the author
残月妖刀
deepin
2021-04-12 17:14
#10
SamLukeYes

你的主仓库呢?就那个带 apricot 的,去哪了

不知道啊,deepin版本安装是最新的,我试着下载压缩包安装,在make下报错127

Reply View the author
SamLukeYes
deepin
2021-04-12 17:33
#11

Reply View the author
deepinuser17
deepin
2021-04-16 10:12
#12

这是深度官方的源:

 

$ cat /etc/apt/sources.list
## Generated by deepin-installer
deb [by-hash=force] https://community-packages.deepin.com/deepin/ apricot main contrib non-free
#deb-src https://community-packages.deepin.com/deepin/ apricot main contrib non-free

 

官方的源必须保持. 第三方源可以加到/etc/apt/sources.list.d/下面.

$ ls /etc/apt/sources.list.d/
appstore.list  printer.list  vscode.list

 

一般而言, 添加第三方源有风险, 除非第三方源只安装某个软件包, 深度不提供.

Reply View the author