4

我有一台机器,一个 64 位 ubuntu 服务器 Natty (11.04) 我需要安装一个编译器(基本上在上面做“apt-get build-essential”),但我没有连接

到目前为止,我已经尝试过使用 apt-offline ;它没有用。无法使用 Keryx,因为我没有该服务器的桌面.... 出于同样的原因也无法使用 Synaptic 也尝试下载 debian 软件包(gcc、g++、cpp、libc6 等)但依赖项和配置让我抓狂

有什么建议吗?

谢谢

4

1 回答 1

0

apt-offline 就是为此目的而编写的。它有一个涵盖Build Dependencies用例的选项。

rrs@learner:~$ apt-offline set -h
usage: apt-offline set [-h] [--verbose] [--simulate]
                       [--install-packages [PKG [PKG ...]]]
                       [--install-src-packages [SOURCE PKG [SOURCE PKG ...]]]
                       [--src-build-dep] [--release release_name] [--update]
                       [--upgrade] [--upgrade-type upgrade]
                       [--generate-changelog] [--apt-backend apt-get]
                       apt-offline.sig

positional arguments:
  apt-offline.sig       Generate a signature file

optional arguments:
  -h, --help            show this help message and exit
  --verbose             Enable verbose messages
  --simulate            Just simulate. Very helpful when debugging
  --install-packages [PKG [PKG ...]]
                        Packages that need to be installed
  --install-src-packages [SOURCE PKG [SOURCE PKG ...]]
                        Source Packages that need to be installed
  --src-build-dep       Install Build Dependency packages for requested source
                        packages
  --release release_name
                        Release target to install packages from
  --update              Generate Signature to update APT Database
  --upgrade             Generate Signature of packages to be upgraded
  --upgrade-type upgrade
                        Type of upgrade to do. Use one of upgrade, dist-
                        upgrade, dselect-ugprade
  --generate-changelog  Generate changelog of the version to be downloaded
  --apt-backend apt-get
                        APT backend to use. One of: apt, apt-get, python-apt
2017-01-22 / 19:05:24 ♒♒♒  ☺  
于 2017-01-22T13:37:36.263 回答