不小心卸载了tar

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
who9394
帖子: 9
注册时间: 2006-02-23 17:21

#1

帖子 who9394 » 2006-08-17 14:43

不小心卸载了tar,重装时出错。出错提示如下:
E: /var/cache/apt/archives/tar_1.15.1-2ubuntu2_i386.deb: 子进程·dpkg-deb --control·返回了错误号·2
头像
huangzuobin
帖子: 176
注册时间: 2006-03-28 2:53

#2

帖子 huangzuobin » 2006-08-18 10:04

新立得试一试,看看行不
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2006-08-18 10:15

dpkg -l tar
apt-cache search tar
apt-get install tar
● 鸣学
who9394
帖子: 9
注册时间: 2006-02-23 17:21

按照你们的方法去做还是不行啊!

#4

帖子 who9394 » 2006-08-18 16:22

正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
下列【新】软件包将被安装:
tar
共升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
需要下载 0B/519kB 的软件包。
解压缩后会消耗掉 1827kB 的额外空间。
dpkg-deb (子进程):exec tar 失败: No such file or directory
dpkg-deb: 子进程·tar·返回了错误号·2
dpkg:处理 /var/cache/apt/archives/tar_1.15.1-2ubuntu2_i386.deb (--unpack)时出错:
子进程·dpkg-deb --control·返回了错误号·2
在处理时有错误发生:
/var/cache/apt/archives/tar_1.15.1-2ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
头像
5451vs5451
帖子: 345
注册时间: 2006-07-14 18:56
来自: Apple Valley, Planet Tux, Linux System

#5

帖子 5451vs5451 » 2006-08-18 16:40

dpkg要用到tar的。

$ apt-cache show tar
Package: tar
Essential: yes
Priority: required

Section: base
Installed-Size: 1784
Maintainer: Bdale Garbee <bdale@gag.com>
Architecture: i386
Version: 1.15.1-2ubuntu2
Replaces: cpio
Pre-Depends: libc6 (>= 2.3.4-1)
Suggests: bzip2
Conflicts: cpio (<= 2.4.2-38 )
Filename: pool/main/t/tar/tar_1.15.1-2ubuntu2_i386.deb
Size: 518884
MD5sum: 3e158f8dcc4c77e04ae5dcd32086a0f7
Description: GNU tar
Tar is a program for packaging a set of files as a single archive in tar
format. The function it performs is conceptually similar to cpio, and to
things like PKZIP in the DOS world. It is heavily used by the Debian package
management system
, and is useful for performing system backups and exchanging
sets of files with others.
Bugs: mailto:ubuntu-users@lists.ubuntu.com
Origin: Ubuntu

到别人机器上把下面这些文件拷过来试试看吧。

$ for file in $(dpkg -L tar); do test -f $file && echo $file; done
/etc/rmt
/usr/share/lintian/overrides/tar
/usr/share/man/man8/rmt-tar.8.gz
/usr/share/man/man1/tar.1.gz
/usr/share/info/tar.info-2.gz
/usr/share/info/tar.info.gz
/usr/share/info/tar.info-1.gz
/usr/share/doc/tar/AUTHORS
/usr/share/doc/tar/NEWS.gz
/usr/share/doc/tar/README.gz
/usr/share/doc/tar/THANKS.gz
/usr/share/doc/tar/changelog.gz
/usr/share/doc/tar/README.Debian
/usr/share/doc/tar/copyright
/usr/share/doc/tar/changelog.1.gz
/usr/share/doc/tar/changelog.Debian.gz
/usr/sbin/rmt-tar
/usr/lib/mime/packages/tar
/bin/tar

像这样的软件系统怎么会允许把它删掉呢?我感到很奇怪。
who9394
帖子: 9
注册时间: 2006-02-23 17:21

#6

帖子 who9394 » 2006-09-06 9:07

谢谢54512vs5451!!!
我是用硬盘安装的。没刻盘,不然的话应该可以从liveCD上拷这些文件。而且周围没其它电脑装UBUNTU。
看来我只好重装了,或使用其它发行版。本想装ubuntu是想要用cadence SPB15.5的,谁知没装上还把tar给删了。是我个人原因,水平不行。
希望ubuntu越做越好吧。
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#7

帖子 oneleaf » 2006-09-06 9:14

mkdir /mnt/iso
mount -o loop ubuntu***.iso /mnt/iso
然后你就可以复制出来了。
who9394
帖子: 9
注册时间: 2006-02-23 17:21

#8

帖子 who9394 » 2006-09-11 11:23

oneleaf 写了:mkdir /mnt/iso
mount -o loop ubuntu***.iso /mnt/iso
然后你就可以复制出来了。
我还是不死心。但是这个方法我试了,不行。如果这个方法行得通能否详细一点。
对于ubuntu-6.06-desktop-i386.iso,那些东西应该都在/casper/filesystem.squashfs文件里,但是用什么软件打开呢?
对开ubuntu-6.06-alternate-i386.iso,里面提供的是.deb的包,现在的问题就是.deb的包安装不了,会出错。
回复