小编Bri*_*unt的帖子

在 Ubuntu 12.04 LTS 上安装 gcc

当我尝试在 Ubuntu 12.04 LTS 服务器上安装 gcc 时apt-get install gcc,出现以下错误:

The following packages have unmet dependencies:
 gcc : Depends: cpp (>= 4:4.6.1-2ubuntu5) but it is not going to be installed
       Depends: gcc-4.6 (>= 4.6.1-1) but it is not going to be installed
       Recommends: libc6-dev but it is not going to be installed or
                   libc-dev
Run Code Online (Sandbox Code Playgroud)

当我深入研究(即尝试apt-get install gcc-4.6)时,我得到:

 gcc-4.6 : Depends: gcc-4.6-base (= 4.6.1-9ubuntu3) but 4.6.3-1ubuntu5 is to be installed
           Depends: cpp-4.6 (= 4.6.1-9ubuntu3) but it is not …
Run Code Online (Sandbox Code Playgroud)

package-management apt dependencies gcc

58
推荐指数
1
解决办法
36万
查看次数

无需用户输入即可更改 10.04/11.04 中的时区

如何在没有用户输入的情况下从命令行更改 Ubuntu 10.04 或 11.04 服务器中的时区(例如tzconfig EST)。

虽然有人会使用dpkg-reconfigure tzdata,但根据相关问题How to change the time-zone settings from the command line,通过用户交互,我似乎无法找到如何从非交互式脚本中更改时区。

该解决方案旨在成为配置服务器的安装脚本的一部分。

感谢您的阅读。

configuration setup date headless

8
推荐指数
1
解决办法
3895
查看次数