您尚未登录。

#1 2024-07-08 17:55:30

yepp
会员
注册时间: 2024-07-08
帖子: 14

安装完成后,systemctl enable sddm返回“no installation config”

今天重装了一下系统,安装过程都是按照以往成功过的方法,最后systemctl enable sddm时,返回大概是这样的:
The unit files have no installation config (WantedBy=, RequiredBy=, UpheldBy=,
Also=, or Alias= settings in the [Install] section, and DefaultInstance= for
template units). This means they are not meant to be enabled or disabled using systemct

Possible reasons for having these kinds of units are:
. A unit may be statically enabled by being symlinked from another unit's
.wants/, .requires/, or .upholds/ directory.
. A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
. A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ... ).
. In case of template units, the unit is meant to be enabled with some
instance name specified.

请问是什么原因呢?

离线

#2 2024-07-08 18:07:11

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,773
个人网站

Re: 安装完成后,systemctl enable sddm返回“no installation config”

systemctl cat sddm 看看。

离线

#3 2024-07-08 20:22:11

yepp
会员
注册时间: 2024-07-08
帖子: 14

Re: 安装完成后,systemctl enable sddm返回“no installation config”

依云大佬,systemctl cat sddm内容:
#/usr/lib/systemd/system/sddm.service
[Unit]
Description=Simple Desktop Display Manager
Documentation=man:sddm(1) man:sddm.conf(5)
Conflicts=getty@tty1.service
After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service systemd-logind.service
PartOf=graphical.target
StartLimitIntervalSec=30
StartLimitBurst=2

[Service]
ExecStart=/usr/bin/sddm
Restart=always

[Install]
Alias=display-manager.service

离线

#4 2024-07-08 20:29:40

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,773
个人网站

Re: 安装完成后,systemctl enable sddm返回“no installation config”

咦,这没问题啊。

离线

#5 2024-07-08 20:44:15

yepp
会员
注册时间: 2024-07-08
帖子: 14

Re: 安装完成后,systemctl enable sddm返回“no installation config”

不知道啊,安装完重启后,完全无法进入系统,显示器都没有信号输出了。。。
我看这里有讨论https://bbs.archlinux.org/viewtopic.php?id=297044,不过我小白,看不懂,能帮忙看看吗?

离线

#6 2024-07-08 22:28:27

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,773
个人网站

Re: 安装完成后,systemctl enable sddm返回“no installation config”

原来是 systemd 的新近 bug。

显示器没有信号应该和这个无关,可能是另外的问题。录像看看具体发生了啥?

离线

#7 2024-07-09 09:43:53

yepp
会员
注册时间: 2024-07-08
帖子: 14

Re: 安装完成后,systemctl enable sddm返回“no installation config”

感谢依云大佬,那这个问题有什么临时的办法解决吗?现在都进不去系统,只能chroot进去看

另外显示器没信号我感觉还是和这个有关,我是台式pc,启动到一半显示器黑屏,然后显示无信号。但同电脑的win系统就是正常的。

ps:我感觉这是Plasma 6.1出现的问题,晚上我装个Gnome试试。

最近编辑记录 yepp (2024-07-09 09:59:30)

离线

#8 2024-07-09 10:06:14

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,773
个人网站

Re: 安装完成后,systemctl enable sddm返回“no installation config”

一半是哪里?

离线

#9 2024-07-10 08:59:50

yepp
会员
注册时间: 2024-07-08
帖子: 14

Re: 安装完成后,systemctl enable sddm返回“no installation config”

依云大佬,本来昨天想装gnome试试的,结果,和朋友喝多了,哎,喝酒误事。。。

我用手机录屏了,但是怎么发给你呢?加Telegram?https://t.me/yeppfox,请大佬指点

离线

#10 2024-07-10 09:08:24

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,773
个人网站

Re: 安装完成后,systemctl enable sddm返回“no installation config”

找个地方传呗,比如 https://pb.nichi.co/

离线

#11 2024-07-10 10:33:37

yepp
会员
注册时间: 2024-07-08
帖子: 14

Re: 安装完成后,systemctl enable sddm返回“no installation config”

依云大佬,传到这里了,可以直接下载,https://upfile.live/zh-cn/files/90e6baa2,请帮忙看看,感谢!

离线

#12 2024-07-10 11:34:56

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,773
个人网站

Re: 安装完成后,systemctl enable sddm返回“no installation config”

呃,你这视频怎么只有 30fps,而且没有拍到屏幕底部。现在只能看到大概是启动图形登录器的时候出了问题,但是不确定启动的是谁。
你在内核命令行上加上 systemd.unit=multi-user.target 来进入没有图形界面的命令行试试?在引导界面,按 e 进入编辑模式,编辑好之后按 Ctrl-x 启动。

离线

#13 2024-07-10 11:36:46

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,773
个人网站

Re: 安装完成后,systemctl enable sddm返回“no installation config”

进系统之后,用 journalctl -b -1 -n 1000 看看上次启动的最后一千条日志,找找看启动了谁。
我猜是 sddm。如果 jounral 里没有看到有啥报错的话,去 /var/log/sddm 之类的地方看看它的其它日志。
另外你的显卡和显卡驱动信息说一下吧。

离线

#14 2024-07-10 12:54:40

yepp
会员
注册时间: 2024-07-08
帖子: 14

Re: 安装完成后,systemctl enable sddm返回“no installation config”

按照命令行加上 systemd.unit=multi-user.target,还是无法启动,症状和之前一样。

chroot进去后, journalctl -b -1 -n 1000返回no entries,在/var/log目录下没有看到sddm。

我刚才安装了gnome,systemctl disable sddm时正常,systemctl enable gdm时,返回我最开始说的那个错误。

重启后还是一样症状,我录了一个视频,用ocr识别了一些信息如下:

Starting D-Bus Systen Message Bus ...
] Started D-Bus System Message Bus.
OK ] Reached target Basic System.
Starting Network Manager ..
Starting User Login Management ...
OK ] Started Verify integrity of password and group files.
Starting Hostname Service ...
] Started User Login Management.
] Started Hostname Service.
Starting Network Manager Script Dispatcher Service ...
] Started Network Manager Script Dispatcher Service.
] Started Network Manager.
] Reached target Network.
Starting Permit User Sessions ...
OK J Finished Permit User Sessions.
Starting GHOME Display Manager ...
Starting Hold until boot process finishes up ...
OK J Started GNOME Display Manager.        到这里就黑屏,然后显示器显示无信号。

最近编辑记录 yepp (2024-07-10 12:57:47)

离线

#15 2024-07-10 12:56:40

yepp
会员
注册时间: 2024-07-08
帖子: 14

Re: 安装完成后,systemctl enable sddm返回“no installation config”

显卡NVIDIA GeForce GTX 960,安装lts内核,驱动nvdia-lts,lib32-nvidia-utils

离线

页脚