ikwzm / ZynqMP-FPGA-Ubuntu20.04-Ultra96

Ubuntu 20.04 Desktop for Ultra96/Ultra96-V2
12 stars 3 forks source link

tar rootfs fail #1

Closed PapaKache closed 3 years ago

PapaKache commented 3 years ago

I try to unpackage rootfs file. $:tar zxvf ubuntu20.04-desktop-rootfs.tgz -C rootfs. A error occur.

I check package: $:md5sum ubuntu20.04-desktop-rootfs.tgz $:ee0868ba3070182ce0d0af866395f1c0 ubuntu20.04-desktop-rootfs.tgz

tar log below

var/log/fontconfig.log var/log/dpkg.log var/log/apt/ var/log/apt/term.log var/log/apt/eipp.log.xz var/log/apt/history.log var/log/bootstrap.log var/log/faillog var/log/samba/ var/log/lastlog tar: 由于前次错误,将以上次的错误状态退出

ikwzm commented 3 years ago

I tried it here, but it was fine.

shell$ git clone https://github.com/ikwzm/ZynqMP-FPGA-Ubuntu20.04-Ultra96
Cloning into 'ZynqMP-FPGA-Ubuntu20.04-Ultra96'...
remote: Enumerating objects: 127, done.        
remote: Counting objects: 100% (127/127), done.        
remote: Compressing objects: 100% (81/81), done.        
remote: Total 127 (delta 54), reused 111 (delta 38), pack-reused 0        
Receiving objects: 100% (127/127), 4.61 MiB | 3.77 MiB/s, done.
Resolving deltas: 100% (54/54), done.
Filtering content: 100% (5/5), 582.02 MiB | 9.74 MiB/s, done.
shell$ cd ZynqMP-FPGA-Ubuntu20.04-Ultra96/
shell$ ls -la
total 647172
drwxr-xr-x 1 ichiro ichiro      4096 Jan 11 15:42 .
drwxrwxrwx 1 ichiro ichiro      4096 Jan 11 15:41 ..
drwxr-xr-x 1 ichiro ichiro      4096 Jan 11 15:42 .git
-rw-r--r-- 1 ichiro ichiro       335 Jan 11 15:41 .gitattributes
-rw-r--r-- 1 ichiro ichiro      2841 Jan 11 15:41 Readme.md
drwxr-xr-x 1 ichiro ichiro      4096 Jan 11 15:41 doc
drwxr-xr-x 1 ichiro ichiro      4096 Jan 11 15:41 files
drwxr-xr-x 1 ichiro ichiro      4096 Jan 11 15:41 scripts
drwxr-xr-x 1 ichiro ichiro      4096 Jan 11 15:41 target
-rw-r--r-- 1 ichiro ichiro 563295323 Jan 11 15:42 ubuntu20.04-desktop-rootfs.tgz
shell$ md5sum ubuntu20.04-desktop-rootfs.tgz
ee0868ba3070182ce0d0af866395f1c0  ubuntu20.04-desktop-rootfs.tgz
shell$ mkdir usb2
shell$ sudo tar xfz ubuntu20.04-desktop-rootfs.tgz -C usb2
shell$ cd usb2/
shell$ ls -la
total 0
drwxr-xr-x 1 ichiro ichiro 4096 Jan 11 15:44 .
drwxr-xr-x 1 ichiro ichiro 4096 Jan 11 15:43 ..
lrwxrwxrwx 1 root   root      7 Jan  7 10:30 bin -> usr/bin
drwxr-xr-x 1 root   root   4096 Jan  7 10:54 boot
drwxr-xr-x 1 root   root   4096 Jan  7 10:30 dev
drwxr-xr-x 1 root   root   4096 Jan  7 12:57 etc
drwxr-xr-x 1 root   root   4096 Jan  7 10:51 home
lrwxrwxrwx 1 root   root      7 Jan  7 10:30 lib -> usr/lib
drwxr-xr-x 1 root   root   4096 Jan  7 10:34 media
drwxr-xr-x 1 root   root   4096 Jan  7 10:34 mnt
drwxr-xr-x 1 root   root   4096 Jan  7 10:34 opt
drwxr-xr-x 1 root   root   4096 Apr 15  2020 proc
drwx------ 1 root   root   4096 Jan  7 12:57 root
drwxr-xr-x 1 root   root   4096 Jan  7 12:56 run
lrwxrwxrwx 1 root   root      8 Jan  7 10:30 sbin -> usr/sbin
drwxr-xr-x 1 root   root   4096 Jan  7 10:34 srv
drwxr-xr-x 1 root   root   4096 Apr 15  2020 sys
drwxrwxrwt 1 root   root   4096 Jan  7 12:57 tmp
drwxr-xr-x 1 root   root   4096 Jan  7 12:51 usr
drwxr-xr-x 1 root   root   4096 Jan  7 10:34 var
PapaKache commented 3 years ago

Thanks,i found the problem. I wanto see the tar process,so my tar command is: $:sudo tar xvfz ubuntu20.04-desktop-rootfs.tgz -C usb2 it will can cause the tar error

If excute command: $:sudo tar xfz ubuntu20.04-desktop-rootfs.tgz -C usb2 everything is ok.

PapaKache commented 3 years ago

ok