ubuntu下使用本地软件包APT
2014-07-16 10:32
204 查看
=====================================================================配置:lenovoproduct: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
64 bits
8G内存OS:Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic x86_64)======================================================================公司搭建了一些编译服务器,这些服务器平常事不连接外网,只限于局域网内,时常有安装新软件的需求。去Ubuntu packages 下载下来后使用dpkg -i 安装,但是有时候需要一些依赖,容易出错,于是在source.list中添加本。
1.创建本地包目录:
本文出自 “衰人有里” 博客,请务必保留此出处http://npjocj.blog.51cto.com/826225/1438863
64 bits
8G内存OS:Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic x86_64)======================================================================公司搭建了一些编译服务器,这些服务器平常事不连接外网,只限于局域网内,时常有安装新软件的需求。去Ubuntu packages 下载下来后使用dpkg -i 安装,但是有时候需要一些依赖,容易出错,于是在source.list中添加本。
1.创建本地包目录:
mkdir -p /var/cache/apt/localdeb2.添加source.list precise就是ubuntu 12.04的版本
mv sources.list sources.list.net vim sources.list.local #use local deb #ln -s sources.list.net sources.list #use initnet #ln -s sources.list.local sources.list deb file:///var/cache/apt/localdeb precise main3. 使用软连接添加本地源为默认使用源
ln -s sources.list.local sources.list好了,试试安装
/etc/apt# apt-get install gitweb Reading package lists... Done Building dependency tree Reading state information... Done Package gitweb is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: git E: Package 'gitweb' has no installation candidate
本文出自 “衰人有里” 博客,请务必保留此出处http://npjocj.blog.51cto.com/826225/1438863
相关文章推荐
- Ubuntu使用apt-get安装本地deb包
- 使用 apt-p2p 搭建本地 Debian 软件包缓存
- ubuntu 使用apt-fast 安装软件包
- ubuntu 使用apt-fast 安装软件包
- ubuntu 使用本地软件包作为安装源(转http://www.happyyezi.cn/linux/119/)
- 使用 APT-mirror 四步配置 Ubuntu 本地软件仓库
- ubuntu 使用本地软件包作为安装源(转)
- 使用 APT-mirror 四步配置 Ubuntu 本地软件仓库
- 使用 APT-mirror 四步配置 Ubuntu 本地软件仓库
- Ubuntu使用apt-get install下载安装一些软件包的时候连接不到cn.archive.ubuntu.com
- 使用 APT-mirror 四步配置 Ubuntu 本地软件仓库
- ubuntu 使用本地软件包作为安装源
- ubuntu 使用本地软件包作为安装源
- 软件源与本地软件包安装与卸载-Ubuntu下apt-get与dpkg命令用法
- 使用apt-mirror建立本地ubuntu仓库源
- 使用apt-mirror搭建ubuntu本地安装源
- 使用apt-mirror建立本地ubuntu仓库源
- 在debian中使用apt工具(三)--在debian中阻止某些软件包升级
- 为apt-get设置HTTP代理(使用代理更新Ubuntu的方法)
- 创建和使用本地ubuntu source镜像服务器