Ubuntu在 16.04 中放弃了 Python 2。尽管如此,它仍然在升级后安装(它不是“过时的软件包”的一部分)。
有没有一种干净的方法来以干净的方式删除 Python 2及其所有依赖项(完全摆脱它)?
是apt purge要走的路吗?
root@ubuntu ~# apt purge python2.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libnss-ldap
Use 'apt autoremove' to remove it.
The following packages will be REMOVED:
auth-client-config* ldap-auth-client* ldap-auth-config* libpam-ldap* libsmbclient* ndiff* python* python-bs4* python-chardet* python-crypto* python-dnspython*
python-html5lib* python-ldb* python-lxml* python-ntdb* python-pkg-resources* python-samba* python-setuptools* python-six* python-talloc* python-tdb* python2.7* samba*
samba-common-bin* …Run Code Online (Sandbox Code Playgroud) 我运行 16.04,systemd现在tmux在用户断开连接时终止(更改摘要)。
有没有办法用230运行tmux或screen(或任何类似的程序)systemd?我阅读了所有关于行为的利弊的激烈讨论,但没有提出解决方案。
(我也看到了 229 中的行为)
I installed lxd to use linux containers. For some reason I keep using lxc commands to install and start my containers. Since lxd seems to be close to lxc maybe there is a reason for that (but it is not clear).
I wanted to bind two lxc containers to two different bridges, different from the default lxcbr0 one. I created br1 and br2 and gave them IP addresses. They work fine and are pingable.
I am now trying to locate …
I initially asked this question on SU but it is so specific to Ubuntu that I move it here.
I installed an 433Mhz transceiver on my Ubuntu system (3.8.0-35). It is an USB-to-Serial kind of device and is somehow recognized:
dmesg output:
[ 324.051498] usb 3-1: new full-speed USB device number 2 using xhci_hcd
[ 324.088070] usb 3-1: New USB device found, idVendor=10c4, idProduct=8668
[ 324.088081] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 324.088087] usb 3-1: Product: …Run Code Online (Sandbox Code Playgroud) 我想从命令行编辑 LXD 配置文件。这是由lxc profile set:
lxc profile get <profile> <key>获取配置文件配置。
lxc profile set <profile> <key> <value>设置配置文件配置。
的预期格式是<key> <value>什么?来自的输出lxc show profile表明了一个点状结构:
root@ubuntu ~# lxc profile show zoneminder
name: zoneminder
config:
raw.lxc: lxc.aa_allow_incomplete=1
description: ""
devices:
eth0:
name: eth0
nictype: bridged
parent: zoneminder0
type: nic
Run Code Online (Sandbox Code Playgroud)
但我get什么也没做(更不用说 - set)。我尝试了各种咒语(例如lxc profile get zoneminder name, lxc profile get zoneminder lxc.name, ... 以获得上述值name),但它们都没有返回任何内容。
我使用systemd(xenial) 并希望保持最新状态。为此,我安装了 Martin Pitt 的 PPA,一切都很好。
在一个系统上(没有任何特别之处,实际上这是一个全新安装),尽管配置了 PPA ......
root@eu11:~# apt update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:2 http://fr.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:5 http://ppa.launchpad.net/pitti/systemd/ubuntu xenial InRelease
Fetched 102 kB in 0s (297 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Run Code Online (Sandbox Code Playgroud)
...systemd从标准存储库安装。
root@eu11:~# apt show systemd
Package: systemd
Version: 229-4ubuntu17
Priority: required
Section: admin
Origin: Ubuntu
Run Code Online (Sandbox Code Playgroud)
这种行为的原因是什么?(我没有配置任何固定,因为我不知道怎么做,以前从来没有需要) …
我有一个 Ubuntu 盒子,可以kodi在我的电视上全屏显示。它是/etc/rc.local通过开始
/usr/bin/xinit /usr/bin/kodi
Run Code Online (Sandbox Code Playgroud)
今天,一个蹒跚学步的孩子抓住了键盘一瞬间,并设法通过键盘组合来切换屏幕,这样kodi窗口现在大约占屏幕的 1/6。它在左上角,屏幕的其余部分是空白的,移动鼠标时,光标从箭头(在小屏幕上方)变为十字,而在外面。
看起来就像一个xinit以 an开头的情况xterm(它也占据了屏幕的那一部分)。
(猜测如下)可能是键盘组合指示kodi使用较小的分辨率,或xinit使用较大的分辨率(从而推kodi入较小的屏幕)。
我重新启动了计算机,但它现在也启动到此配置(所以 - 再次疯狂猜测 - 可能是键盘组合切换了一个永久参数,但它是一瞬间,所以它不可能超过Ctrl-M-Shift-Left Arrow-P)
由于与婴儿对话的可能性很小,我希望能提供有关在哪里寻找解决方案的任何提示。