Tag: systemd

如何让ipv4 / inet在intel主机上运行的arm lxc容器中运行?

如果尝试在我的intel 64bit系统上创建armhf和arm64 / aarch64 lxc容器。 我在启动容器之前复制了相关的qemu文件。 /usr/bin/qemu-arm-static for arm和/usr/bin/qemu-aarch64-static for arm64。 当我创建其他基于intel的ubuntu容器时,我的eth0有一个ipv4地址。 (使用桥接网络) 我像这样创建arm64容器: lxc launch ubuntu:15.04/arm64 arm64 cp /usr/bin/qemu-aarch64-static /usr/lib/lxd/containers/arm64/rootfs/usr/bin lxc start arm64 我没有做任何其他修改。 在arm64容器中,ifconfig显示: eth0 Link encap:Ethernet HWaddr 00:16:3e:e4:d2:de inet6 addr: fe80::216:3eff:fee4:d2de/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:19 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 […]

在16.04升级安装systemd-sysv失败后,如何检查我修复了它?

我从15.10更新到16.04LTS。 据报道,出现了“ 未安装systemd-sysv ”消息的错误,它也出现在我的机器上,安装中止了我运行apt-get -f install的建议,我做了。 现在启动时没有错误,但我想知道如何确定systemd-sysv是否已正确安装 我提到的bug报告是在systemd-sysv安装bug

关机/重启无限期挂起 – Ubuntu 16.04

将我的笔记本电脑(戴尔Inspiron 5447)升级到Ubuntu 16.04后,我发现使用该系统几个小时后我无法关机或重启。 它挂在普利茅斯并保持这种状态,直到我按下开/关按钮强制关机。 由于这是一个常见问题(互联网上存在大量问题),我试图修复它,但我的尝试都没有效果。 已经尝试过: 使用acpi = force,acpi = noirq和pci = noacpi启动; 禁用交换; 在重启或关机之前运行’sync’; 使用另一个内核版本(主线为4.7,4.8,4.9和4.10); 在BIOS设置中禁用USB 3.0; 禁用TLP; 最有趣的是: 我可以使用14.04和Xenial HWE的内核正常关机/重启; 如果系统没有相当长的正常运行时间(例如<2小时),系统将正常关闭/重新启动; 我的机器规格: 戴尔Inspiron 5447 – BIOS A10英特尔酷睿i5-4210处理器8 GB RAM 480 GB SSD Sandisk混合显卡(i915 / amdgpu – Radeon R7 M265) 有谁知道如何解决这个问题?

安装包“upstart-sysv”后,Ubuntu 16.04LTS无法启动

刚刚在Intel NuC5i7上安装了新的官方Ubuntu 16.04桌面LTS。 sudo apt install upstart-sysv; sudo reboot sudo apt install upstart-sysv; sudo reboot会破坏我的系统。 靴子卡在紫色屏幕上。 我可以使用Ctrl-Alt-F6访问另一个终端。 如果我用Ctrl-Alt-F6切换回来,我会得到一个神秘的错误(不确定它是否相关): /lib+/init/init-d-script: 12: /etc/rc2.d/S02whoopsie: -c: node found basename: missing operand 我已经在Virtualbox VM中重现了它,我在启动时被重定向到终端登录,并显示以下错误消息: [ 17.012097] systemd-logind[1270]: Failed to start user service, ignoring: Unknown unit: user@1000.service 只有我吗? 我该怎么做才能修复我的系统并有一个工作新贵?

在系统启动时停用蓝牙的最佳方法? (使用systemd而非upstart)

使用systemd为每次启动停用蓝牙的最佳方法是什么? 有很多例子,但它们都与upstart和rc.local一起使用。 使用Ubuntu 15.10,默认情况下禁用rc.local。 我认为这是有原因的,或者不是吗? 那么如何在没有rc.local脚本的情况下正确停用蓝牙目标/服务? 也许重新激活rc.local添加行“rfkill block bluetooth”是正确的方法吗?

为什么某些系统服务处于“屏蔽”状态?

当我运行命令sudo systemctl list-unit-files (我认为sudo是可选的)时,我得到输出,显示所有服务及其状态。 这是我机器的一个片段: UNIT FILE STATE … debian-fixup.service static debug-shell.service disabled display-manager.service enabled dns-clean.service enabled dsmcad.service enabled emergency.service static failsafe-x.service static friendly-recovery.service masked fuse.service masked gdm.service masked getty-static.service static getty@.service enabled gpsd.service indirect gpsdctl@.service static gpu-manager.service enabled halt-local.service static halt.service masked hostname.service masked … 我想知道为什么有些服务处于“蒙面”状态。 我认为这意味着,“这比’禁用’要好,因为服务无法通过手动或系统启动”。 如何获得有关服务单元状态的更多信息? 谁将这些单位置于各自的状态? 我试过,例如, sudo systemctl help dsmcad […]

如何在启动时启动lightdm服务

我的系统正在运行Ubuntu 15.04,我已经通过@Bruno Pereira的回答将默认启动更改为“ text ”而不是“ quiet splash ” 如何在启动时禁用X以便系统在文本模式下启动? 。但是我再次将默认启动更改为quiet splash和update-grub但是因为Ubuntu 15.04使用systemd我的系统无法启动到图形登录并停留在Ubuntu Logo屏幕。我必须通过CTRL + ALT转到tty1终端+ F1和manullay启动Lightdm服务,因为每次登录都会sudo service lightdm start 。 我应该如何将我的启动更改为图形登录,即“ quiet splash ”? sudo gedit /etc/default/grub # If you change this file, run ‘update-grub’ afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub […]

Systemd无法在lxd托管16.04容器中启动openvpn

openvpn使用来自systemd单元文件的确切ExecStart=调用从命令行启动: /usr/sbin/openvpn –daemon ovpn-server –status /run/openvpn/server.status 10 –cd /etc/openvpn –script-security 2 –config /etc/openvpn/server.conf /run/openvpn/server.pid ps ax确认该过程在那里: 1634 ? Ss 0:00 /usr/sbin/openvpn –daemon ovpn-server –status /run/openvpn/server.status 10 –cd /etc/openvpn –script-security 2 –config /etc/openvpn/server.conf –writepid /run/openvpn/ 但是systemctl start openvpn@server不成功: ● openvpn@server.service – OpenVPN connection to server Loaded: loaded (/lib/systemd/system/openvpn@.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) […]

如何使用systemd> 230运行tmux / screen?

我运行16.04并且systemd现在在用户断开连接时杀死tmux ( 更改摘要 )。 有没有办法用systemd 230运行tmux或screen (或任何类似的程序)? 我阅读了所有关于行为的利弊的激烈讨论,但没有提出任何解决方案。 (我也看到了229中的行为)

14.10到15.04升级,现在我无法断电或重启!

我以前在英特尔NUC Bay路径上没有任何问题地运行14.10但是在将其升级到15.04之后我的PC将不再断电或重新启动。 在关机消息中它表示卸载文件系统然后“达到目标关闭”。 在那一刻,它只是停止,迫使我按下电源按钮重新启动它。