$ apt-get install -f -o 'Dpkg::Options::=--force-confmiss --force-all --force-confnew --overwrite-conffiles' --reinstall at-spi2-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
kde-workspace-bin : Depends: qdbus but it is not going to be installed
libqt4-dbus : Depends: qdbus (= 4:4.8.5+git192-g085f851+dfsg-2ubuntu4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
我不太明白“但它不会被安装”。那为什么不安装呢? …
root@gcomputer:~# systemctl status x11-common
? x11-common.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
Run Code Online (Sandbox Code Playgroud)
我试过了systemctl unmask x11-common,systemctl unmask x11-common.service但这并没有改变任何东西。
我如何揭开它的面纱?
我想安装一些软件包 ( apt-get install XXX),但我不希望将其添加到手动安装的软件包 ( ) 列表中apt-mark showmanual。如何?
在 Gentoo 中,相应的标志emerge是--oneshot,表示不将其添加到 world 文件(对应于手动安装的软件包列表)。
一个用例是我想编写一些脚本来自动安装或重新安装一些软件包,apt-get install以修复一些混乱的系统,但我不想将这些软件包标记为手动安装。
我想还有其他用例。由于emerge也有这样的标志,我想知道是否有类似的标志apt-get install。
也许答案是否定的,之后我必须手动将其标记为 auto ( apt-mark auto XXX) 。
有时在长时间使用(几天)KDE Plasma 后,复制和粘贴会突然停止工作。(具体来说,paste 命令总是粘贴我最后在缓冲区中的任何内容,但我无法将任何新内容复制到缓冲区中。)
(同时,移动窗口也停止工作。可能相关:here。使用kwin --replace修复程序,即现在我可以再次移动窗口。但是,复制和粘贴仍然以相同的方式被破坏。)
哪个服务负责复制和粘贴处理?是否可以仅重新启动该服务,这样我就不需要重新启动整个系统并再次注销/登录?
(这是带有 KDE 5 的 Ubuntu 16.04。)
我发现klipper了,并试图kstart klipper,但这并不能帮助(有些迭代后kwin --replace,killall plasmashell,plasmashell,甚至粘贴剪贴板停止工作,并klipper带回了糊了,仍然有旧冷冻缓冲区的内容,但它仍然没有让我复制剪贴板缓冲区的任何新内容)。
我也发现ksmserver但不确定它的作用。也不确定如何正确重启。
我还发现dbus-daemon,这可能是相关的。还不确定。也不确定如何正确重启。killall dbus-daemon完全注销了会话。
我得到这个输出:
$ startx
X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-70-generic x86_64 Ubuntu
Current Operating System: Linux gcomputer 3.2.0-59-lowlatency #61-Ubuntu SMP PREEMPT Tue Jan 28 09:16:18 UTC 2014 x86_64
Kernel command line: root=UUID=56fc92d2-1903-4263-b88e-d09bc15ef1d3 ro quiet splash
Build Date: 10 December 2014 06:15:52PM
xorg-server 2:1.15.1-0ubuntu2.6 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.30.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: …Run Code Online (Sandbox Code Playgroud) Audio device got stuck!
Run Code Online (Sandbox Code Playgroud)
这是我从 Mplayer 收到的错误消息。但在播放声音时,所有应用程序都会遇到同样的问题(默认情况下都使用 PulseAudio)。也就是说,我听到了极度口吃的声音,而且大部分都是悬而未决的。这也会导致任何视频挂起,例如 YouTube 视频(因此我的帖子在这里)。
这似乎与 PulseAudio 有关。因为当我通过 ALSA 玩时,它工作得很好。(即禁用 PulseAudio 控制器中的设备,然后使用mplayer -ao alsa:device=hw=1.0 ...。)
此外,该问题并不总是存在,而是在最近的某些更新后才出现。
乌班图20.04。
相关音频设备(通过lspci -nn):
09:00.1 Audio device [0403]: NVIDIA Corporation TU106 High Definition Audio Controller [10de:10f9] (rev a1)
0b:00.4 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller [1022:1487]
Run Code Online (Sandbox Code Playgroud)
第二个设备是我要使用的设备。
head -n1 /proc/asound/card1/codec\#0:
Codec: Realtek ALCS1200A
Run Code Online (Sandbox Code Playgroud) 我正在尝试这样做,apt-get dist-upgrade但出现错误:
E: Could not perform immediate configuration on 'util-linux'.Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
我该如何解决这个问题?
我有 Ubuntu 16.04。我刚刚更换了硬件(新主板、新 CPU、新 GPU、新 RAM、新网卡、新 SATA 控制器),现在 Ubuntu 无法启动了。过了一会儿,我进入了紧急外壳,似乎我可以完全访问那里的系统。我能够手动设置网络(ifconfig en5ps0 up; dhclient en5ps0<-它想出的非常奇怪的接口名称)。查看日志 ( journalctl -xb) 时,似乎在等待某个不再找到的磁盘时超时。
一些可能相关的日志消息:
...
systemd: Received SIGRTMIN+21 from PID 2816 (plymouthd).
...
root: /etc/dhcp/dhclient-enter-hooks.d/avahi-autoipd returned non-zero exit status 1
...
root: /etc/dhcp/dhclient-enter-hooks.d/samba returned non-zero exit status 1
...
systemd: Received SIGRTMIN+20 from PID 3100 (plymouthd).
...
systemd: dev-disk-by\x2duuid-....device: Job dev-disk-by\x2duuid-...device/start timed out.
systemd: Timed out waiting for device dev-disk-by\x2duuid-....device.
-- Subject: Unit dev-disk-by...device has failed
...
-- The result is timeout. …Run Code Online (Sandbox Code Playgroud) root@gcomputer:~# apt-get install kubuntu-desktop
...
Unpacking kde-config-telepathy-accounts (4:15.12.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+16.04.20160126-0ubuntu1
...
Unpacking kaccounts-providers (4:15.12.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kaccounts-providers_4%3a15.12.3-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/etc/signon-ui/webkit-options.d/www.facebook.com.conf', which is also in package account-plugin-facebook 0.12+16.04.20160126-0ubuntu1
...
Errors were encountered while processing:
/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb
/var/cache/apt/archives/kaccounts-providers_4%3a15.12.3-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
所以我又试了一次:
root@gcomputer:~# apt-get install kubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done …Run Code Online (Sandbox Code Playgroud) apt ×3
systemd ×2
boot ×1
dist-upgrade ×1
kde ×1
kubuntu ×1
networking ×1
nvidia ×1
pulseaudio ×1
sound ×1
udev ×1
upgrade ×1
xorg ×1