Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
安装本地源,更新的时候显示没有release文件。
Apps Section
3676
views ·
0
replies ·
To
floor
Go
189******84
deepin
2016-12-02 19:56
Author
我在建立本地源,步骤是这样
.1.通过如下指令下载XXXX软件所需要的deb包
$ sudo apt-get -d install XXXXX
执行完上述指令后,XXXX软件的安装包就下载到了/var/cache/apt/archives目录下
2.2.生成依赖关系
1.根目录下新建一个文件夹
$ sudo mkdir offlinePackage
2.将下载的deb包拷贝到上述新建的文件夹下
$ sudo cp -r /var/cache/apt/archives /offlinePackage
3.修改文件夹的权限,可读可写可执行
$ sudo chmod 777 -R /offlinPackage/
4.建立deb包的依赖关系
$ sudo dpkg-scanpackages /offlinePackage/ /dev/null |gzip >/offlinePackage/Packages.gz
如果出现错误:sudo: dpkg-scanpackages: command not found
则需要安装dpkg-dev工具:
$ sudo apt-get install dpkg-dev
5.将生成的Packages.gz包复制到和deb同目录下
$ sudo cp /offlinePackage/Packages.gz /offlinePackage/archives/Packages.gz
2.3.打包成压缩包,以备后用
$ tar cvzf offlinePackage.tar.gz offlinePackage/
保存offlinePackage.tar.gz文件到U盘或服务器
三.在另外一台Ubuntu上离线安装
1.插入U盘或光盘,将offlinePackage.tar.gz复制到根目录下,解压
$ sudo tar -xvf offlinePackage.tar.gz
2.将安装包所在和源路径添加到系统源source.list
$ sudo vi /etc/apt/sources.list
deb file:///offlinePackage archives/
然后将所有的其他deb全部注销掉(#)
注意:我们在添加之前可以先将原来的源备份
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.back
以备以后使用
3. 更新系统源
$ sudo apt-get update
最后使用命令
sudo apt-get update 时候出现
获取:1 file:/package archives/ InRelease
忽略:1 file:/package archives/ InRelease
获取:2 file:/package archives/ Release
忽略:2 file:/package archives/ Release
获取:3 file:/package archives/ Packages
忽略:3 file:/package archives/ Packages
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
获取:5 file:/package archives/ Translation-zh
忽略:5 file:/package archives/ Translation-zh
获取:6 file:/package archives/ Translation-en_US
忽略:6 file:/package archives/ Translation-en_US
获取:7 file:/package archives/ Translation-en
忽略:7 file:/package archives/ Translation-en
获取:3 file:/package archives/ Packages
忽略:3 file:/package archives/ Packages
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
获取:5 file:/package archives/ Translation-zh
忽略:5 file:/package archives/ Translation-zh
获取:6 file:/package archives/ Translation-en_US
忽略:6 file:/package archives/ Translation-en_US
获取:7 file:/package archives/ Translation-en
忽略:7 file:/package archives/ Translation-en
获取:3 file:/package archives/ Packages
忽略:3 file:/package archives/ Packages
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
获取:5 file:/package archives/ Translation-zh
忽略:5 file:/package archives/ Translation-zh
获取:6 file:/package archives/ Translation-en_US
忽略:6 file:/package archives/ Translation-en_US
获取:7 file:/package archives/ Translation-en
忽略:7 file:/package archives/ Translation-en
获取:3 file:/package archives/ Packages
忽略:3 file:/package archives/ Packages
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
获取:5 file:/package archives/ Translation-zh
忽略:5 file:/package archives/ Translation-zh
获取:6 file:/package archives/ Translation-en_US
忽略:6 file:/package archives/ Translation-en_US
获取:7 file:/package archives/ Translation-en
忽略:7 file:/package archives/ Translation-en
获取:3 file:/package archives/ Packages
忽略:3 file:/package archives/ Packages
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
获取:5 file:/package archives/ Translation-zh
忽略:5 file:/package archives/ Translation-zh
获取:6 file:/package archives/ Translation-en_US
忽略:6 file:/package archives/ Translation-en_US
获取:7 file:/package archives/ Translation-en
忽略:7 file:/package archives/ Translation-en
获取:3 file:/package archives/ Packages
错误:3 file:/package archives/ Packages
无法找到文件 - /package/archives/Packages (2: 没有那个文件或目录)
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
W: 仓库 “file:/package archives/ Release” 没有 Release 文件。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 无法下载 file:/package/archives/Packages 无法找到文件 - /package/archives/Packages (2: 没有那个文件或目录)
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
这是在哪里出错了?
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
我在建立本地源,步骤是这样
.1.通过如下指令下载XXXX软件所需要的deb包
$ sudo apt-get -d install XXXXX
执行完上述指令后,XXXX软件的安装包就下载到了/var/cache/apt/archives目录下
2.2.生成依赖关系
1.根目录下新建一个文件夹
$ sudo mkdir offlinePackage
2.将下载的deb包拷贝到上述新建的文件夹下
$ sudo cp -r /var/cache/apt/archives /offlinePackage
3.修改文件夹的权限,可读可写可执行
$ sudo chmod 777 -R /offlinPackage/
4.建立deb包的依赖关系
$ sudo dpkg-scanpackages /offlinePackage/ /dev/null |gzip >/offlinePackage/Packages.gz
如果出现错误:sudo: dpkg-scanpackages: command not found
则需要安装dpkg-dev工具:
$ sudo apt-get install dpkg-dev
5.将生成的Packages.gz包复制到和deb同目录下
$ sudo cp /offlinePackage/Packages.gz /offlinePackage/archives/Packages.gz
2.3.打包成压缩包,以备后用
$ tar cvzf offlinePackage.tar.gz offlinePackage/
保存offlinePackage.tar.gz文件到U盘或服务器
三.在另外一台Ubuntu上离线安装
1.插入U盘或光盘,将offlinePackage.tar.gz复制到根目录下,解压
$ sudo tar -xvf offlinePackage.tar.gz
2.将安装包所在和源路径添加到系统源source.list
$ sudo vi /etc/apt/sources.list
deb file:///offlinePackage archives/
然后将所有的其他deb全部注销掉(#)
注意:我们在添加之前可以先将原来的源备份
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.back
以备以后使用
3. 更新系统源
$ sudo apt-get update
最后使用命令
sudo apt-get update 时候出现
获取:1 file:/package archives/ InRelease
忽略:1 file:/package archives/ InRelease
获取:2 file:/package archives/ Release
忽略:2 file:/package archives/ Release
获取:3 file:/package archives/ Packages
忽略:3 file:/package archives/ Packages
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
获取:5 file:/package archives/ Translation-zh
忽略:5 file:/package archives/ Translation-zh
获取:6 file:/package archives/ Translation-en_US
忽略:6 file:/package archives/ Translation-en_US
获取:7 file:/package archives/ Translation-en
忽略:7 file:/package archives/ Translation-en
获取:3 file:/package archives/ Packages
忽略:3 file:/package archives/ Packages
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
获取:5 file:/package archives/ Translation-zh
忽略:5 file:/package archives/ Translation-zh
获取:6 file:/package archives/ Translation-en_US
忽略:6 file:/package archives/ Translation-en_US
获取:7 file:/package archives/ Translation-en
忽略:7 file:/package archives/ Translation-en
获取:3 file:/package archives/ Packages
忽略:3 file:/package archives/ Packages
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
获取:5 file:/package archives/ Translation-zh
忽略:5 file:/package archives/ Translation-zh
获取:6 file:/package archives/ Translation-en_US
忽略:6 file:/package archives/ Translation-en_US
获取:7 file:/package archives/ Translation-en
忽略:7 file:/package archives/ Translation-en
获取:3 file:/package archives/ Packages
忽略:3 file:/package archives/ Packages
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
获取:5 file:/package archives/ Translation-zh
忽略:5 file:/package archives/ Translation-zh
获取:6 file:/package archives/ Translation-en_US
忽略:6 file:/package archives/ Translation-en_US
获取:7 file:/package archives/ Translation-en
忽略:7 file:/package archives/ Translation-en
获取:3 file:/package archives/ Packages
忽略:3 file:/package archives/ Packages
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
获取:5 file:/package archives/ Translation-zh
忽略:5 file:/package archives/ Translation-zh
获取:6 file:/package archives/ Translation-en_US
忽略:6 file:/package archives/ Translation-en_US
获取:7 file:/package archives/ Translation-en
忽略:7 file:/package archives/ Translation-en
获取:3 file:/package archives/ Packages
错误:3 file:/package archives/ Packages
无法找到文件 - /package/archives/Packages (2: 没有那个文件或目录)
获取:4 file:/package archives/ Translation-zh_CN
忽略:4 file:/package archives/ Translation-zh_CN
W: 仓库 “file:/package archives/ Release” 没有 Release 文件。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 无法下载 file:/package/archives/Packages 无法找到文件 - /package/archives/Packages (2: 没有那个文件或目录)
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
这是在哪里出错了?