我试图在 Ubuntu 11.10 上安装 postfix 以支持 SMTP...我输入
sudo apt-get install postfix
Run Code Online (Sandbox Code Playgroud)
然后安装开始。
但是在安装过程中会弹出一个配置屏幕,要求我选择一个选项。现在的问题是配置屏幕中没有接受选项的链接,并且由于我无法选择选项,安装过程停止。
如果我退出终端并再次尝试重新安装,我会收到一条消息
could not get lock /var/cache/apt/archives/lock -open(11. resource temporarily unavailable)
Run Code Online (Sandbox Code Playgroud)


我正在使用 Ubuntu 12.04。我写了一个简单的 hello world 内核模块 ( hello.c)。我为它编写了以下makefile:
obj-m+=hello.o
KDIR:= /usr/src/linux-headers-3.2.0-24-generic-pae
all:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
rm -rf *.o *.ko *.mod.* *.symvers *.order
Run Code Online (Sandbox Code Playgroud)
但是当我从内核制作时出现了这个错误:
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
make[2]: *** No rule to make target `arch/x86/tools/relocs.c', needed
by `arch/x86/tools/relocs'. Stop.
Run Code Online (Sandbox Code Playgroud)
hello.c并且makefile在/Documents/module_prog. 我make从那个目录跑了。
是什么导致了这个错误,我该如何解决?