我已使用和禁用ctrl++键命令。altDELsudo systemctl mask ctrl-alt-del.target
sudo systemctl daemon-reload
但即使如此,如果我连续按下ctrl+ alt+DEL键命令,系统也会重新启动。
这是 Ubuntu 的一个已知问题还是预期的行为?
PS:我仅通过 SSH 使用 cli 界面。因此基于 GUI 的答案没有帮助。
我已使用和禁用ctrl++键命令。altDELsudo systemctl mask ctrl-alt-del.target
sudo systemctl daemon-reload
但即使如此,如果我连续按下ctrl+ alt+DEL键命令,系统也会重新启动。
这是 Ubuntu 的一个已知问题还是预期的行为?
PS:我仅通过 SSH 使用 cli 界面。因此基于 GUI 的答案没有帮助。
我已经从 ubuntu 22.04 升级到 24.04,但 skype repo 出现了一些问题。我卸载了 skypeforlinux,但 repo...我无法删除它。
每次更新我都会收到此错误:
Err:5 https://repo.skype.com/deb stable InRelease
503 Service Unavailable [IP: 2a02:26f0:3500:c84::1263 443]
Fetched 1.080 kB in 7s (144 kB/s)
Reading package lists... Done
W: Failed to fetch https://repo.skype.com/deb/dists/stable/InRelease 503 Service Unavailable [IP: 2a02:26f0:3500:c84::1263 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
我尝试像这样删除 ppa:
sudo add-apt-repository --remove https://repo.skype.com/deb stable main
但我收到此错误:
Repository: 'deb https://repo.skype.com/deb noble stable main'
Description:
Archive for codename: noble components: stable,main
More info: https://repo.skype.com/deb
Removing repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 364, in <module>
sys.exit(0 if addaptrepo.main() else 1)
File "/usr/bin/add-apt-repository", line 355, in main
shortcut.remove()
File "/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py", line 233, in remove
self.remove_source()
File "/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py", line 349, in remove_source
sourceslist.save(remove=True)
File "/usr/lib/python3/dist-packages/softwareproperties/extendedsourceslist.py", line 391, in save
with open(filename, "w") as f:
PermissionError: [Errno 1] Operation not permitted: '/etc/apt/sources.list.d/skype-stable.list'
我怎样才能删除 skype ppa???
更新
输出ps -ea
PID TTY TIME CMD
1 ? 00:00:01 systemd
2 ? 00:00:00 kthreadd
3 ? 00:00:00 pool_workqueue_release
4 ? 00:00:00 kworker/R-rcu_g
5 ? 00:00:00 kworker/R-rcu_p
6 ? 00:00:00 kworker/R-slub_
7 ? 00:00:00 kworker/R-netns
8 ? 00:00:00 kworker/0:0-events
10 ? 00:00:00 kworker/0:0H-events_highpri
11 ? 00:00:00 kworker/u64:0-netns
12 ? 00:00:00 kworker/R-mm_pe
13 ? 00:00:00 rcu_tasks_kthread
14 ? 00:00:00 rcu_tasks_rude_kthread
15 ? 00:00:00 rcu_tasks_trace_kthread
16 ? 00:00:00 ksoftirqd/0
17 ? 00:00:00 rcu_preempt
18 ? 00:00:00 migration/0
19 ? 00:00:00 idle_inject/0
20 ? 00:00:00 cpuhp/0
21 ? 00:00:00 cpuhp/1
22 ? 00:00:00 idle_inject/1
23 ? 00:00:00 migration/1
24 ? 00:00:00 ksoftirqd/1
25 ? 00:00:00 kworker/1:0-events
26 ? 00:00:00 kworker/1:0H-events_highpri
27 ? 00:00:00 cpuhp/2
28 ? 00:00:00 idle_inject/2
29 ? 00:00:00 migration/2
30 ? 00:00:00 ksoftirqd/2
31 ? 00:00:00 kworker/2:0-events
32 ? 00:00:00 kworker/2:0H-events_highpri
33 ? 00:00:00 cpuhp/3
34 ? 00:00:00 idle_inject/3
35 ? 00:00:00 migration/3
36 ? 00:00:00 ksoftirqd/3
38 ? 00:00:00 kworker/3:0H-events_highpri
39 ? 00:00:00 cpuhp/4
40 ? 00:00:00 idle_inject/4
41 ? 00:00:00 migration/4
42 ? 00:00:00 ksoftirqd/4
44 ? 00:00:00 kworker/4:0H-events_highpri
45 ? 00:00:00 cpuhp/5
46 ? 00:00:00 idle_inject/5
47 ? 00:00:00 migration/5
48 ? 00:00:00 ksoftirqd/5
49 ? 00:00:00 kworker/5:0-events
50 ? 00:00:00 kworker/5:0H-events_highpri
51 ? 00:00:00 cpuhp/6
52 ? 00:00:00 idle_inject/6
53 ? 00:00:00 migration/6
54 ? 00:00:00 ksoftirqd/6
56 ? 00:00:00 kworker/6:0H-events_highpri
57 ? 00:00:00 cpuhp/7
58 ? 00:00:00 idle_inject/7
59 ? 00:00:00 migration/7
60 ? 00:00:00 ksoftirqd/7
62 ? 00:00:00 kworker/7:0H-events_highpri
63 ? 00:00:00 cpuhp/8
64 ? 00:00:00 idle_inject/8
65 ? 00:00:00 migration/8
66 ? 00:00:00 ksoftirqd/8
68 ? 00:00:00 kworker/8:0H-events_highpri
69 ? 00:00:00 cpuhp/9
70 ? 00:00:00 idle_inject/9
71 ? 00:00:00 migration/9
72 ? 00:00:00 ksoftirqd/9
74 ? 00:00:00 kworker/9:0H-events_highpri
75 ? 00:00:00 cpuhp/10
76 ? 00:00:00 idle_inject/10
77 ? 00:00:00 migration/10
78 ? 00:00:00 ksoftirqd/10
80 ? 00:00:00 kworker/10:0H-events_highpri
81 ? 00:00:00 cpuhp/11
82 ? 00:00:00 idle_inject/11
83 ? 00:00:00 migration/11
84 ? 00:00:00 ksoftirqd/11
86 ? 00:00:00 kworker/11:0H-events_highpri
87 ? 00:00:00 cpuhp/12
88 ? 00:00:00 idle_inject/12
89 ? 00:00:00 migration/12
90 ? 00:00:00 ksoftirqd/12
91 ? 00:00:00 kworker/12:0-events
92 ? 00:00:00 kworker/12:0H-events_highpri
93 ? 00:00:00 cpuhp/13
94 ? 00:00:00 idle_inject/13
95 ? 00:00:00 migration/13
96 ? 00:00:00 ksoftirqd/13
98 ? 00:00:00 kworker/13:0H-events_highpri
99 ? 00:00:00 cpuhp/14
100 ? 00:00:00 idle_inject/14
101 ? 00:00:00 migration/14
102 ? 00:00:00 ksoftirqd/14
104 ? 00:00:00 kworker/14:0H-events_highpri
105 ? 00:00:00 cpuhp/15
106 ? 00:00:00 idle_inject/15
107 ? 00:00:00 migration/15
108 ? 00:00:00 ksoftirqd/15
109 ? 00:00:00 kworker/15:0-rcu_par_gp
110 ? 00:00:00 kworker/15:0H-events_highpri
113 ? 00:00:00 kdevtmpfs
114 ? 00:00:00 kworker/R-inet_
116 ? 00:00:00 kauditd
117 ? 00:00:00 kworker/0:2-events
119 ? 00:00:00 kworker/1:2-rcu_par_gp
120 ? 00:00:00 khungtaskd
121 ? 00:00:00 oom_reaper
123 ? 00:00:00 kworker/R-write
124 ? 00:00:00 kcompactd0
125 ? 00:00:00 ksmd
126 ? 00:00:00 khugepaged
127 ? 00:00:00 kworker/R-kinte
128 ? 00:00:00 kworker/R-kbloc
129 ? 00:00:00 kworker/R-blkcg
130 ? 00:00:00 irq/9-acpi
132 ? 00:00:00 kworker/R-tpm_d
133 ? 00:00:00 kworker/R-ata_s
134 ? 00:00:00 kworker/R-md
135 ? 00:00:00 kworker/R-md_bi
136 ? 00:00:00 kworker/R-edac-
137 ? 00:00:00 kworker/u64:1-ext4-rsv-conversion
138 ? 00:00:00 kworker/R-devfr
139 ? 00:00:00 watchdogd
140 ? 00:00:00 kworker/1:1H-kblockd
142 ? 00:00:00 irq/25-AMD-Vi
143 ? 00:00:00 kswapd0
144 ? 00:00:00 ecryptfs-kthread
145 ? 00:00:00 kworker/R-kthro
146 ? 00:00:00 irq/26-aerdrv
147 ? 00:00:00 irq/27-aerdrv
148 ? 00:00:00 irq/28-aerdrv
149 ? 00:00:00 irq/29-aerdrv
150 ? 00:00:00 irq/31-aerdrv
152 ? 00:00:00 kworker/4:1-events
154 ? 00:00:00 kworker/6:1-mm_percpu_wq
155 ? 00:00:00 kworker/7:1-events
158 ? 00:00:00 kworker/11:1-events
159 ? 00:00:00 kworker/12:1-events
160 ? 00:00:00 kworker/13:1-mm_percpu_wq
161 ? 00:00:00 kworker/14:1-rcu_par_gp
163 ? 00:00:00 kworker/R-acpi_
166 ? 00:00:00 kworker/R-mld
167 ? 00:00:00 kworker/R-ipv6_
169 ? 00:00:00 kworker/5:1H-kblockd
175 ? 00:00:00 kworker/R-kstrp
177 ? 00:00:00 kworker/u67:0-hci0
178 ? 00:00:00 kworker/u68:0-ttm
192 ? 00:00:00 kworker/R-charg
218 ? 00:00:00 kworker/6:1H-kblockd
220 ? 00:00:00 kworker/0:1H-kblockd
234 ? 00:00:00 kworker/13:1H-kblockd
240 ? 00:00:00 kworker/9:1H-kblockd
263 ? 00:00:00 kworker/2:1H-kblockd
264 ? 00:00:00 kworker/12:1H-kblockd
265 ? 00:00:00 kworker/7:1H-kblockd
266 ? 00:00:00 kworker/15:1H-kblockd
267 ? 00:00:00 kworker/11:1H-kblockd
268 ? 00:00:00 kworker/3:1H-kblockd
269 ? 00:00:00 kworker/10:1H-kblockd
270 ? 00:00:00 kworker/8:1H-kblockd
273 ? 00:00:00 kworker/14:1H-kblockd
275 ? 00:00:00 kworker/4:1H-kblockd
288 ? 00:00:00 kworker/R-nvme-
289 ? 00:00:00 kworker/14:2-events
296 ? 00:00:00 kworker/R-nvme-
297 ? 00:00:00 kworker/R-nvme-
301 ? 00:00:00 kworker/R-nvme-
324 ? 00:00:00 scsi_eh_0
325 ? 00:00:00 kworker/R-scsi_
326 ? 00:00:00 scsi_eh_1
327 ? 00:00:00 kworker/R-scsi_
328 ? 00:00:00 scsi_eh_2
329 ? 00:00:00 kworker/R-scsi_
330 ? 00:00:00 scsi_eh_3
331 ? 00:00:00 kworker/R-scsi_
332 ? 00:00:00 scsi_eh_4
333 ? 00:00:00 kworker/R-scsi_
334 ? 00:00:00 scsi_eh_5
335 ? 00:00:00 kworker/R-scsi_
336 ? 00:00:00 scsi_eh_6
337 ? 00:00:00 kworker/R-scsi_
338 ? 00:00:00 scsi_eh_7
339 ? 00:00:00 kworker/R-scsi_
342 ? 00:00:15 kworker/u66:4+events_unbound
348 ? 00:00:00 scsi_eh_8
349 ? 00:00:00 kworker/R-scsi_
350 ? 00:00:16 kworker/u66:10-events_unbound
352 ? 00:00:00 kworker/4:2-rcu_par_gp
355 ? 00:00:00 kworker/7:2-cgroup_destroy
358 ? 00:00:00 kworker/8:2-mm_percpu_wq
378 ? 00:00:00 jbd2/nvme0n1p2-8
379 ? 00:00:00 kworker/R-ext4-
420 ? 00:00:00 psimon
425 ? 00:00:00 systemd-journal
449 ? 00:00:00 kworker/2:2-rcu_par_gp
455 ? 00:00:00 kworker/9:2-events
503 ? 00:00:00 kworker/9:3-events
506 ? 00:00:00 systemd-udevd
508 ? 00:00:00 kworker/u65:4-writeback
574 ? 00:00:00 psimon
626 ? 00:00:01 kworker/u65:9-events_power_efficient
635 ? 00:00:19 kworker/u65:17-flush-259:0
636 ? 00:00:06 kworker/u65:18-events_unbound
661 ? 00:00:00 kworker/5:2-events
702 ? 00:00:00 kworker/3:2-events
771 ? 00:00:00 kworker/10:2-events
780 ? 00:00:00 ccp-1-q2
781 ? 00:00:00 ccp-1-q3
782 ? 00:00:00 ccp-1-q4
783 ? 00:00:00 hwrng
893 ? 00:00:00 kworker/R-crypt
929 ? 00:00:00 kworker/u67:1-hci0
1027 ? 00:00:00 kworker/R-nvkm-
1028 ? 00:00:00 kworker/R-ttm
1029 ? 00:00:00 card0-crtc0
1030 ? 00:00:00 card0-crtc1
1031 ? 00:00:00 card0-crtc2
1032 ? 00:00:00 card0-crtc3
1320 ? 00:00:00 systemd-oomd
1377 ? 00:00:00 systemd-resolve
1379 ? 00:00:00 systemd-timesyn
1508 ? 00:00:00 accounts-daemon
1509 ? 00:00:01 acpid
1510 ? 00:00:00 anacron
1512 ? 00:00:00 avahi-daemon
1514 ? 00:00:00 bluetoothd
1515 ? 00:00:00 cron
1516 ? 00:00:00 dbus-daemon
1523 ? 00:00:00 networkd-dispat
1528 ? 00:00:01 polkitd
1532 ? 00:00:00 power-profiles-
1545 ? 00:00:02 snapd
1550 ? 00:00:00 switcheroo-cont
1558 ? 00:00:00 systemd-logind
1563 ? 00:00:00 udisksd
1573 ? 00:00:00 avahi-daemon
1581 ? 00:00:00 NetworkManager
1588 ? 00:00:00 wpa_supplicant
1629 ? 00:00:00 ModemManager
1642 ? 00:00:00 rsyslogd
1773 ? 00:00:00 unattended-upgr
1788 ? 00:00:00 containerd
1793 ? 00:00:00 anydesk
1869 ? 00:00:00 colord
1874 ? 00:00:00 cupsd
1919 ? 00:00:04 mysqld
1966 ? 00:00:00 apache2
1971 ? 00:00:00 apache2
1972 ? 00:00:00 apache2
1973 ? 00:00:00 apache2
1974 ? 00:00:00 apache2
1975 ? 00:00:00 apache2
2148 ? 00:00:00 cups-browsed
2166 ? 00:00:00 dockerd
2176 ? 00:00:00 nmbd
2198 ? 00:00:00 kerneloops
2203 ? 00:00:00 kerneloops
2209 ? 00:00:01 teamviewerd
2247 ? 00:00:00 smbd
2265 ? 00:00:00 smbd-notifyd
2266 ? 00:00:00 cleanupd
2267 ? 00:00:00 samba-bgqd
2533 ? 00:00:00 gdm3
2575 ? 00:00:00 rtkit-daemon
2677 ? 00:00:00 upowerd
2680 ? 00:00:07 packagekitd
2821 ? 00:00:00 kworker/u68:1-ttm
2893 ? 00:00:00 gdm-session-wor
2902 ? 00:00:00 kworker/3:3-inet_frag_wq
2909 ? 00:00:00 systemd
2914 ? 00:00:00 (sd-pam)
2926 ? 00:00:00 pipewire
2927 ? 00:00:00 pipewire-media-
2928 ? 00:00:00 pulseaudio
2937 ? 00:00:00 gnome-keyring-d
2950 ? 00:00:00 dbus-daemon
2952 ? 00:00:00 xdg-document-po
2958 ? 00:00:00 xdg-permission-
2964 ? 00:00:00 fusermount3
3004 tty2 00:00:00 gdm-wayland-ses
3007 tty2 00:00:00 gnome-session-b
3054 ? 00:00:00 gnome-session-c
3068 ? 00:00:00 gvfsd
3076 ? 00:00:00 gvfsd-fuse
3079 ? 00:00:00 gnome-session-b
3107 ? 00:00:00 at-spi-bus-laun
3111 ? 00:00:34 gnome-shell
3119 ? 00:00:00 dbus-daemon
3157 ? 00:00:00 gnome-shell-cal
3163 ? 00:00:00 evolution-sourc
3170 ? 00:00:00 goa-daemon
3171 ? 00:00:00 dconf-service
3176 ? 00:00:00 evolution-calen
3177 ? 00:00:00 gvfs-udisks2-vo
3188 ? 00:00:00 goa-identity-se
3201 ? 00:00:00 gvfs-gphoto2-vo
3205 ? 00:00:00 gvfs-goa-volume
3209 ? 00:00:00 gvfs-afc-volume
3214 ? 00:00:00 gvfs-mtp-volume
3220 ? 00:00:00 gvfsd-trash
3231 ? 00:00:00 gjs
3232 ? 00:00:00 at-spi2-registr
3251 ? 00:00:00 sh
3252 ? 00:00:00 gsd-a11y-settin
3255 ? 00:00:00 gsd-color
3256 ? 00:00:00 gsd-datetime
3258 ? 00:00:00 gsd-housekeepin
3260 ? 00:00:00 ibus-daemon
3262 ? 00:00:00 gsd-keyboard
3263 ? 00:00:00 gsd-media-keys
3266 ? 00:00:00 gsd-power
3268 ? 00:00:00 gsd-print-notif
3269 ? 00:00:00 gsd-rfkill
3270 ? 00:00:00 gsd-screensaver
3272 ? 00:00:00 gsd-sharing
3277 ? 00:00:00 gsd-smartcard
3278 ? 00:00:00 gsd-sound
3282 ? 00:00:00 gsd-wacom
3283 ? 00:00:00 blueman-applet
3304 ? 00:00:00 evolution-alarm
3343 ? 00:00:00 ibus-memconf
3344 ? 00:00:00 ibus-extension-
3351 ? 00:00:00 gsd-disk-utilit
3356 ? 00:00:00 ibus-portal
3397 ? 00:00:05 snap-store
3429 ? 00:00:00 kworker/15:4-events
3430 ? 00:00:00 ibus-engine-sim
3443 ? 00:00:00 gsd-printer
3453 ? 00:00:00 kworker/u68:3-ttm
3462 ? 00:00:00 kworker/u68:12-ttm
3463 ? 00:00:00 kworker/u68:13-ttm
3464 ? 00:00:00 kworker/u68:14-ttm
3465 ? 00:00:00 kworker/u68:15-ttm
3471 ? 00:00:00 tracker-miner-f
3479 ? 00:00:00 xdg-desktop-por
3485 ? 00:00:00 xdg-desktop-por
3494 ? 00:00:00 gjs
3599 ? 00:00:00 snapd-desktop-i
3658 ? 00:00:00 obexd
3660 ? 00:00:00 blueman-tray
3665 ? 00:00:00 xdg-desktop-por
3668 ? 00:00:00 krfcommd
3673 ? 00:00:00 snapd-desktop-i
3711 ? 00:00:00 gjs
3811 ? 00:00:01 fwupd
3812 ? 00:00:00 gvfsd-metadata
4077 ? 00:00:10 insync
4424 ? 00:00:00 QtWebEngineProc
4425 ? 00:00:00 QtWebEngineProc
4438 ? 00:00:00 QtWebEngineProc
4448 ? 00:00:01 QtWebEngineProc
4523 ? 00:00:00 kworker/13:3-rcu_par_gp
5292 ? 00:00:06 Xwayland
5298 ? 00:00:00 gsd-xsettings
5344 ? 00:00:00 ibus-x11
5502 ? 00:00:00 kworker/u69:3-ttm
6035 ? 00:00:00 kworker/6:3-events
6049 ? 00:00:00 kworker/u69:6-ttm
6170 ? 00:00:00 update-notifier
6361 ? 00:00:00 kworker/11:0
6365 ? 00:00:00 kworker/10:0-cgroup_destroy
6497 ? 00:00:00 kworker/8:0
6500 ? 00:00:00 kworker/u69:2-ttm
6504 ? 00:00:00 kworker/u69:7-ttm
6505 ? 00:00:00 kworker/u69:8-ttm
6506 ? 00:00:00 kworker/u69:9-ttm
6507 ? 00:00:00 kworker/u69:10-ttm
6508 ? 00:00:00 kworker/u69:11-ttm
6511 ? 00:00:07 kworker/u66:0-events_unbound
6512 ? 00:00:00 kworker/u68:4-ttm
6514 ? 00:00:00 kworker/u68:6-ttm
6516 ? 00:00:00 kworker/u68:8-ttm
6517 ? 00:00:00 kworker/u68:9-ttm
6518 ? 00:00:00 kworker/u68:10-ttm
6519 ? 00:00:00 kworker/u68:11-ttm
6617 ? 00:00:01 gnome-terminal-
6635 pts/0 00:00:00 bash
6765 ? 00:00:00 kworker/u65:0
6767 ? 00:00:00 kworker/u66:1
6775 ? 00:00:00 kworker/2:1-rcu_par_gp
6776 pts/0 00:00:00 ps
我刚刚在笔记本电脑上双启动到 24.04.1。每当我打开 ubuntu 时,我都会像往常一样连接到 wifi。但是当我的屏幕休眠或进入挂起状态时,无论是我关闭它还是它自动休眠,所有网络都会消失。
我尝试过:
sudo systemctl restart NetworkManager
更改wifi.powersave
为= 2
sudo apt update && sudo apt upgrade
运行:sudo nano /lib/systemd/system-sleep/restart-network-manager.sh 创建脚本:#!/bin/sh case $1 in post) systemctl restart NetworkManager ;; esac
然后sudo chmod +x /lib/systemd/system-sleep/restart-network-manager.sh
更新的驱动程序sudo ubuntu-drivers autoinstall
已检查rfkill list
;顺便说一下,没有被阻止
暂停后所有网络仍然消失。就像是在寻找网络,但始终找不到一样
有人有想法吗?
我有一份 IP 列表,例如
35.195.23.184 134.209.172.147 207.90.244.14 179.43.191.98 77.90.22.16 222.95.163.138 95.214.53.91 45.230.66.15 199.45.155.111 5.8.11.202 185.191.126.248 154.83.15.156 71.6.232.28 35.204.124.189 141.98.11.178 64.62.197.44 64.62.197.36 64.62.197.33 185.242.226.99 46.19.69.70 114.33.100.55 95.214.55.79 114.35.57.211 162.191.196.61 87.120.126.85 2.196.195.65 118.163.142.112 80.82.77.202 182.44.10.178 114.38.214.165 175.107.1.178 122.116.134.171 109.205.213.198 178.215.238.69 122.116.158.160 93.174.93.12 147.45.112.17 59.126.25.244 59.126.254.199 40.83.134.151 125.228.162.168 220.134.106.248 45.115.89.120 4.255.98.186 87.120.114.229 45.84.89.3 46.174.191.28 95.214.53.211 141.98.11.175 125.228.214.129 36.139.63.123 180.149.126.8 122.116.183.60 185.82.219.179 165.154.206.35 106.75.146.146 106.75.169.16 59.126.115.226 59.182.82.59 47.91.91.123 34.77.49.75 45.148.10.206 45.156.130.18 87.236.176.150 167.94.145.96 199.45.154.130 205.210.31.30 147.185.132.30 64.62.156.83 35.203.210.49 100.0.161.38 1.34.209.79
(不必担心将它们发布在这里,它们都被蜜罐捕获,作为攻击性黑客源。
现在,在 bash-shell 中,我想重新格式化此列表 - 必须用逗号和空格 (, ) 替换它们之间的空格,以便在 hosts.deny 文件中轻松使用它们。我的问题是:正常的 bash 或 sed 替换总是失败,并出现错误“替换错误”。看来我需要以某种方式转义空格/逗号。
所以我的问题是:如何用逗号/空格组合替换此列表中的所有空格?
谢谢!
根据官方文档,Archer T4u 支持 USB 3,但当我将其连接到 USB 3 端口时,它被检测为 USB 2 设备(根据 lsusb 输出)。我在运行 Fedora 40 的 Ubuntu PC 和笔记本电脑上都尝试了此操作,它们都具有较新的 USB 3.1 端口。该设备无需安装任何驱动程序即可运行。
我用谷歌搜索了所有我能想到的内容,结果只找到了这个列表:https ://wiki.ubuntu-it.org/Installazione/SHA256Sum/Hash 。
我下载的文件确实与那里的哈希值匹配,但是这个来源值得信赖吗?
有没有针对 ubuntu unity 24.04.1 Noble Numbat 的官方发布的校验和?https://ubuntuunity.org上没有。
当unbound
使用配置时--enable-dnstap
,无法定位protobuf-c
。
$ ./configure --enable-dnstap
...
...
...
checking for protoc-c... no
configure: error: The protoc-c program was not found. Please install protobuf-c!
不过,protobuf-c
看上去已经安装好了。
$ sudo apt search protobuf-c
Sorting... Done
Full Text Search... Done
libprotobuf-c-dev/stable,now 1.4.1-1+b1 armhf [installed]
Protocol Buffers C static library and headers (protobuf-c)
libprotobuf-c1/stable,now 1.4.1-1+b1 armhf [installed,automatic]
Protocol Buffers C shared library (protobuf-c)
librust-prometheus+protobuf-codegen-pure-dev/stable 0.13.3-1 armhf
Prometheus instrumentation library for Rust applications - feature "protobuf-codegen-pure" and 1 more
librust-protobuf-codegen-dev/stable 2.27.1-1+b2 armhf
Code generator for rust-protobuf - Rust source code
librust-protobuf-codegen-pure-dev/stable 2.27.1-1 armhf
Pure-rust codegen for protobuf using protobuf-parser crate - Rust source code
protobuf-c-compiler/stable 1.4.1-1+b1 armhf
Protocol Buffers C compiler (protobuf-c)
protobuf-codegen/stable 2.27.1-1+b2 armhf
Code generator for rust-protobuf
protobuf-compiler/stable 3.21.12-3 armhf
compiler for protocol buffer definition files
protobuf-compiler-grpc/stable 1.51.1-3+b1 armhf
high performance general RPC framework - protobuf plugin
protobuf-compiler-grpc-java-plugin/stable 1.41.3+ds-1 armhf
high performance general RPC framework - protobuf Java plugin
$ dpkg -l | grep protobuf
ii libprotobuf-c-dev:armhf 1.4.1-1+b1 armhf Protocol Buffers C static library and headers (protobuf-c)
ii libprotobuf-c1:armhf 1.4.1-1+b1 armhf Protocol Buffers C shared library (protobuf-c)
$ sudo find / -name libprotobuf-c1
/usr/share/doc/libprotobuf-c1
$ sudo find / -name libprotobuf-c-dev
/usr/share/doc/libprotobuf-c-dev
$ ls /usr/bin/ | grep proto
$ ls /usr/local/bin/ | grep proto
$ ls /bin/ | grep proto
$ ls /usr/lib/ | grep proto
$ ls /usr/local/lib/ | grep proto
$ ls /lib/ | grep proto
$
尽管已经安装了 protobuf-c 库或程序,但我找不到它。
我该如何解决这个配置问题?
更新:
我从这个答案中发现库名是libprotobuf-c.so.1
。
其位置是通过以下方式找到的:
$ sudo find / -name libprotobuf-c.so.1
/usr/lib/arm-linux-gnueabihf/libprotobuf-c.so.1
$
我尝试通过以下方式将此文件链接到/usr/local/lib
(未绑定的默认安装库目录)
$ ln -s /usr/lib/arm-linux-gnueabihf/libprotobuf-c.so.1
并重新运行
$ ./configure --enable-dnstap
并且仍然收到与上述相同的错误消息。
我进一步尝试:
./configure --enable-dnstap --with-protobuf-c=/usr/lib/arm-linux-gnueabihf/libprotobuf-c.so.1
并且仍然收到与上述相同的错误消息。
我尝试配置的非绑定版本是 1.22.0。
此问题不重复How do I find the package that provided a file?。原因:
dpkg
。apt search
更合适,因为它显示了与描述相关的所有其他包protobuf-c
。libprotobuf-c
,unbound
还使用protoc-c
程序(由未绑定成员告知我),安装后即可使用protobuf-c-compiler
(参见@steeldriver 评论)。使用 不会泄露此信息dpkg
。几天前,微软的 Intune 从 Ubuntu 笔记本电脑上消失了。我尝试重新安装它,但存在依赖性问题。jammy 是否已迁移到此库的新版本?还是我搞砸了什么?
sudo apt install ./intune-portal_1.2405.17-focal_amd64.deb
[sudo] password for *****:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'intune-portal' instead of './intune-portal_1.2405.17-focal_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
intune-portal : Depends: libssl1.1 (>= 1.1.0) but it is not installable
Depends: msalsdk-dbusclient (>= 1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
塔式电脑
几周前从 23.10 升级到 24.04 没有任何问题。使用过程中没有任何启动问题,直到今天上午。已设置安全自动更新并允许任何更新。
今天早上启动时,它就是无法通过 IRQ 页面。只是挂在那里。
尝试在安全模式下启动,问题相同。因此,切换到 Grub 页面上显示的唯一其他内核,然后启动。使用桌面上的终端,执行 sudo 更新。这只显示了其中一个程序 KiCad 存在未满足的依赖关系的问题。它显示“无法安装某些软件包”,但没有列表。损坏的软件包列表为空。
6.8.0-47-generic 是我现在使用的内核,因为它继续通过 IRQ 页面并到达 pswrd 页面。内核 6.8.0-48-generic 或 -48 安全模式将无法启动。
我该怎么做才能恢复?或者识别问题?
注意:我有两个硬盘驱动器,前天刚刚克隆了它们,当出现此问题时我正在使用克隆的硬盘驱动器,但后来又回到了未克隆的原始驱动器。两个驱动器都停滞在同一个 IRQ 页面上,所以这可能是硬件问题,但我不知道如何识别它。
我注意到我的前面板 USB 端口不再显示在文件中,尽管它们今天早上我尝试运行 Boot-repair 时它们还在工作……但无法正常工作。命令 lsusb 显示正常的 USB 设备。
有没有办法缩小问题范围?谢谢。
编辑:这个问题突然出现真是太奇怪了,然后当我从克隆中移回原始驱动器时,启动问题也出现了。请注意,当我使用另一个硬盘时,这些硬盘没有通电。因此,我认为这一定是硬件问题,我将驱动器移到了我的备份 PC 上,主板和硬件完全不同,但同样的事情,它只能启动到内核 -47 并在内核 -48 上冻结。除了无法正常启动之外,它在内核 -47 上运行良好。
编辑:它在 -47 上无法正常工作,因为它不允许升级。当我执行更新 && 升级时,它的行为就像要执行某项操作一样,但最终却出现了以下结果:
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-headers-6.8.0-48-generic
linux-headers-generic
linux-generic
linux-image-6.8.0-48-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)