相关疑难解决方法(0)

如何在 Ubuntu 16.04 上使用源 URI 自动更新 /etc/apt/sources.list?

以下命令在 Ubuntu 15.10 上运行良好:

sudo apt-get build-dep emacs24
Run Code Online (Sandbox Code Playgroud)

但是,在 Ubuntu 16.04 上运行时出现以下错误:

Reading package lists... Done
E: You must put some 'source' URIs in your sources.list
Run Code Online (Sandbox Code Playgroud)

在15.10所有行(在数量约10)与deb-src/etc/apt/sources.list其中取消注释,而在16.04相应线,其中注释。例如,这是我当前的 4 行sources.list

## Major bug fix updates produced after the final release of the
## distribution.
deb http://no.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://no.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
Run Code Online (Sandbox Code Playgroud)

这种变化的原因是什么?

接下来,我想避免/etc/apt/sources.list每次重新安装 Ubuntu 时都进行手动编辑。这(取消注释deb-src行)如何自动完成?

apt 16.04

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

编译错误:检查 libXaw...配置:错误:找不到 X 工具包

谁能解决这个错误?配置 emacs 并运行 make 后,我得到以下信息:

[jroberts@pc emacs-24.3]$ make
make: *** No targets specified and no makefile found.  Stop.
Run Code Online (Sandbox Code Playgroud)

这是我运行时的输出 ./configure

[jroberts@pc emacs-24.3]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler …
Run Code Online (Sandbox Code Playgroud)

emacs compiling

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

标签 统计

16.04 ×1

apt ×1

compiling ×1

emacs ×1