标签: debian

如何在 Debian 9.8 上从源代码构建和安装 Python 3.7.x

我全新安装了 Debian 9.8,这是当前的稳定发行版。

$ lsb_release --description
Description:    Debian GNU/Linux 9.8 (stretch)
Run Code Online (Sandbox Code Playgroud)

本系统包含 Python 3.5.3:

$ python3 --version
Python 3.5.3
Run Code Online (Sandbox Code Playgroud)

不幸的是,那个版本不能满足我的需要。我想要一个更新版本的 Python。在撰写本文时,当前版本为 3.7.2。

希望这对一系列版本有帮助,但为了将范围限制在我们可以非常精确的范围内,这个问题是关于 OS 和 python 版本的上述组合。

进一步指定:我想从 python git 源存储库构建,使用默认配置:./configure除了可能--prefix选择自定义安装位置之外,我们将不带任何参数运行。如果可能,我希望任何需要的依赖项都来自标准的 Debian apt 源。

最后也是最重要的:对于我们作为先决条件安装的任何其他软件,请提供有关它的一些信息。不要只是说“安装这个难以理解的 apt 包列表”。

对于 Debian 的延伸存储库中可用的任何依赖项,我需要以下信息:

  • 为了成功完成python的构建/安装步骤,依赖项是否可以被认为是可选的或必须被视为必需的。

  • 指向 apt 包来自的项目主页的链接(如果没有合适的主页,例如 repo url,则下一个最好的链接)。

  • 依赖关系映射到生成的安装中的哪些功能/模块?有时这会很明显,因为项目名称、包名称和用于构建的模块之间的名称相似或相同,但有时不会。

有了这些信息,阅读本文的任何人都可以对他们正在安装的内容及其原因有所了解。确定他们的项目需要哪些依赖项的任务有望变得更加容易。

debian python

17
推荐指数
1
解决办法
8857
查看次数

如何禁用屏幕(没有 X 的 Linux)

我想知道是否有任何方法可以在我使用 Debian 的 Linux 发行版上禁用屏幕。我找到了一些方法可以在安装 X 的情况下做到这一点,但没有 X 就不行。

linux debian display power-management

16
推荐指数
2
解决办法
3万
查看次数

从 Debian 上的 VMWare Workstation 7.1.1 build-282343 安装 VMWare 工具时,gcc 路径无效

我正在尝试在 Debian Squeeze 上安装 VMWare 工具。

我的错误:

Before you can compile modules, you need to have the following installed... 

make
gcc
kernel headers of the running kernel

Searching for GCC...
The path "/usr/bin/gcc" is not valid path to the gcc binary.
Would you like to change it? [yes] 
Run Code Online (Sandbox Code Playgroud)

用户名 -a:

Linux debian 2.6.32-5-686 #1 SMP Sat Sep 18 02:14:45 UTC 2010 i686 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

dpkg -l | 制作

ii  make                                 3.81-8                               An utility for Directing compilation.
Run Code Online (Sandbox Code Playgroud)

dpkg -l | grep gcc …

vmware debian debian-squeeze

16
推荐指数
2
解决办法
6万
查看次数

Virtualbox 中的共享剪贴板仅使用命令行 Debian 来宾

我在使用 Virtualbox 的 Windows 7 主机上安装了 Debian 来宾。安装默认包含 virtualbox-ose-guest-utils,所以我应该拥有我需要的一切。如何打开共享剪贴板?

debian virtualbox

16
推荐指数
3
解决办法
1万
查看次数

apt-get 在安装 Debian 7 后请求安装介质

我通过Debian 映像存档中的第一个 ISO 在 OS X 上将 Debian 安装到 VMware Fusion 6 。

现在,当我尝试apt-get在某些条件下运行时,即apt-get install make,我收到以下错误:

Media change: please insert the disc labeled
 'Debian GNU/Linux 7.3.0 _Wheezy_ - Official i386 DVD Binary-1 20131215-03:40'
in the drive '/media/cdrom/' and press enter
Run Code Online (Sandbox Code Playgroud)

我不知道为什么它会提示我使用任何形式的物理媒体——有什么想法吗?

linux debian

16
推荐指数
1
解决办法
2万
查看次数

Flash 文件 (.swf) 提示下载而不是打开

我曾经能够将 .swf 文件拖到 Chromium 中,而且它们会播放得很好。

最近,这停止工作。不适用于 Chromium 或 Iceweasel。两种浏览器都会提示下载 .swf 文件。两者都启用了 Flash Player,并在其插件页面上列出了 .swf MIME 类型。我试过拖放和 Ctrl+O,都不起作用。有什么我可以改变来让浏览器识别 MIME 类型的吗?

在 Debian Jessie 上使用 Chromium 32 和 Iceweasel 24。

flash debian google-chrome

16
推荐指数
1
解决办法
7万
查看次数

amd64 ubuntu/debian下如何安装i386包

那么,如何在ubuntu/debian multiarch环境下在amd64上安装i386包呢?

这是为什么我看不到 Ubuntu 受限软件包的后续内容,其中sl-modem-daemon软件包在 Ubuntu 中没有 amd64 而只有 i386 版本。按照https://askubuntu.com/questions/29665/how-do-i-apt-get-a-32-bit-package-on-a-64-bit-installation,我试过了,

apt-get install sl-modem-daemon:i386
Run Code Online (Sandbox Code Playgroud)

但仍然得到未找到包的答复。

debian 64-bit packages ubuntu installation

16
推荐指数
1
解决办法
7万
查看次数

Ubuntu下设置静态IP

如何在 Ubuntu 14.04 Trusty 下设置静态 IP 地址?
(注意,这个问题是针对“14.04 Trusty”提出的,但它现在仍然有效,16.04 LTS Xenial)

我的设置不起作用。Ubuntu 14.04 Trusty 的特别之处在于我发现它现在使用“source-directory”关键字同时获取多个文件(参考:http ://manpages.debian.org/cgi-bin/man.cgi?query=interfaces&apropos =0&sektion=0&manpath=Debian+unstable+sid&format=html&locale=en):

$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
Run Code Online (Sandbox Code Playgroud)

所以我准备了我的静态 IP 地址设置:

$ cat /etc/network/interfaces.d/eth
auto eth0
    iface eth0 inet static
    address 192.168.2.100
    netmask 255.255.255.0
    gateway 192.168.2.0
    # add a 2nd ip address
    post-up ip addr add dev eth0 192.168.2.101/24
    pre-down ip addr del dev eth0 192.168.2.101/24
Run Code Online (Sandbox Code Playgroud)

但是,它在启动期间有很长的延迟。我看到启动消息说“启动网络”之类的内容,然后经过很长时间的延迟,再次说“等待 60 秒以上以启动网络”之类的内容。在 …

networking linux debian ip ubuntu

16
推荐指数
1
解决办法
12万
查看次数

“update-secureboot-policy --enroll-key”运行在每一个新的启动吃资源上

update-secureboot-policy --enroll-key似乎每当我启动计算机时都会运行并且永远不会停止运行,除非我手动终止该进程。它使我的计算机变热并使用大量系统资源。如果我手动杀死它,计算机会冷却并且一切正常。这里到底发生了什么?似乎它是由 perl 调用的,它正在调用 debconf 前端,后者正在调用 update-secureboot-policy,因此:/usr/bin/perl -w /usr/share/debconf/frontend /usr/sbin/update-secureboot-policy --enroll-key

编辑:

我正在使用基于 Ubuntu 18.04 的 ElementaryOS 5.0

update-secureboot-policy 的使用统计

debian operating-systems secure-boot

16
推荐指数
1
解决办法
3989
查看次数

将虚拟机 VDI 导出到硬盘驱动器以本地启动它

我有一个在 Windows XP SP3 上运行的 Debian 5.0.2 的 VirtualBox 3.1.2 映像。我想将该 Debian 映像导出到 USB 硬盘驱动器,以便我可以启动到该驱动器并在本机运行它。这可能与VDI有关吗?

windows linux debian virtualbox windows-xp

15
推荐指数
1
解决办法
3万
查看次数