为何我的本地源无法使用

其他Linux/Unix/BSD/OSX等发行版讨论
回复
罗非鱼
帖子: 980
注册时间: 2008-04-12 12:44

为何我的本地源无法使用

#1

帖子 罗非鱼 » 2012-06-24 8:42

我这样建立了本地源
1.apt-get install dpkg-dev
2.cp *.deb /usr/local/debs #本命令有省略
3.dpkg-scanpackages /usr/local/debs /dev/null | gzip - > /usr/local/debs/Packages.gz


4.echo "deb file:/usr/local/debs ./" >> /etc/apt/sources.list
#这种写法是参照debian官方文档 http://www.debian.org/doc/manuals/debia ... zh-cn.html
apt-get install gparted,出现问题
root@debian:/home/tiger# apt-get install gparted
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libopenraw1 libbabl-0.0-0 libgegl-0.0-0 simple-scan libmng1
Use 'apt-get autoremove' to remove them.
Suggested packages:
xfsprogs reiserfsprogs reiser4progs jfsutils kpartx dmraid
The following NEW packages will be installed:
gparted
0 upgraded, 1 newly installed, 0 to remove and 123 not upgraded.
Need to get 0 B/1,314 kB of archives.
After this operation, 4,612 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
gparted
Install these packages without verification [y/N]? y
Err file:/usr/local/debs/ ./ gparted 0.7.0-1
File not found
Failed to fetch file:/usr/local/debs//usr/local/debs/gparted_0.7.0-1_i386.deb File not found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?




5.echo "deb file:///usr/local/debs squeeze main" >> /etc/apt/sources.list #换成这个
apt-get install gparted,出现问题
apt-get install gparted
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gparted


请问,问题出在哪里?
头像
careone
帖子: 839
注册时间: 2007-12-17 21:41

Re: 为何我的本地源无法使用

#2

帖子 careone » 2012-06-24 23:51

联系下 bone 骨头兄,他应该可以帮你解决这个问题
魁拔不死,天下不宁。
魁拔既死,天下不平。
--------------
Careone <emacslocale^126.com>
https://sourceforge.net/projects/emacslocale/files/
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

Re: 为何我的本地源无法使用

#3

帖子 自由建客 » 2012-06-27 21:02

代码: 全选

file:///usr/...
回复