You are not logged in.

#1 2019-02-05 08:50:11

lidavid
Member
Registered: 2019-02-05
Posts: 2

unable to extract the tarball archlinux-bootstrap image

Hello,
I downloaded archlinux-bootstrap-2019.02.01-x86_64.tar.gz and  i am trying to extract it with :

tar xzf archlinux-bootstrap-2019.02.01-x86_64.tar.gz

As mentioned here https://wiki.archlinux.org/index.php/In … ting_Linux .
This results in "Cannot open: Permission denied" errors :

tar: root.x86_64/etc/ca-certificates/extracted/cadir/76579174.0: Cannot create symlink to ‘XRamp_Global_CA_Root.pem’: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/706f604c.0: Cannot create symlink to ‘XRamp_Global_CA_Root.pem’: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/XRamp_Global_CA_Root.pem: Cannot open: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/524d9b43.0: Cannot create symlink to ‘VeriSign_Universal_Root_Certification_Authority.pem’: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/c01cdfa2.0: Cannot create symlink to ‘VeriSign_Universal_Root_Certification_Authority.pem’: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/VeriSign_Universal_Root_Certification_Authority.pem: Cannot open: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/facacbc6.0: Cannot create symlink to ‘VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem’: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/b204d74a.0: Cannot create symlink to ‘VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem’: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem: Cannot open: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/5e4e69e7.0: Cannot create symlink to ‘VeriSign_Class_3_Public_Primary_Certification_Authority_-_G4.pem’: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/7d0b38bd.0: Cannot create symlink to ‘VeriSign_Class_3_Public_Primary_Certification_Authority_-_G4.pem’: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/VeriSign_Class_3_Public_Primary_Certification_Authority_-_G4.pem: Cannot open: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/7d453d8f.0: Cannot create symlink to ‘Verisign_Class_3_Public_Primary_Certification_Authority_-_G3.pem’: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/c0ff1f52.0: Cannot create symlink to ‘Verisign_Class_3_Public_Primary_Certification_Authority_-_G3.pem’: Permission denied
tar: root.x86_64/etc/ca-certificates/extracted/cadir/Verisign_Class_3_Public_Primary_Certification_Authority_-_G3.pem: Cannot open: Permission denied

Am i doing some thing wrong ?

Offline

#2 2019-02-05 10:34:40

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: unable to extract the tarball archlinux-bootstrap image

Did you run the command as root and from which folder ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2019-02-05 10:39:58

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,784
Website

Re: unable to extract the tarball archlinux-bootstrap image

ArchWiki wrote:
# tar xzf <path-to-bootstrap-image>/archlinux-bootstrap-*-x86_64.tar.gz

A hash (#) at the start of the command means "run this as root".


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2019-02-05 11:15:01

lidavid
Member
Registered: 2019-02-05
Posts: 2

Re: unable to extract the tarball archlinux-bootstrap image

Thank you for your answers. I do not run this as root.
This is used as part of a script and worked fine without using root user with https://archive.archlinux.org/iso/2018.11.01/ .
I tested again with 2018.11.01 image and it works without a root user.
Was it working by chance and should only work as a root user ?

Offline

#5 2019-02-05 12:49:14

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,784
Website

Re: unable to extract the tarball archlinux-bootstrap image

I don't know what changed between then and now, but if you don't run it as root, permissions will not be correct on the extracted files -- they will all be owned by your user and primary group, rather than root. This has always been the case.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB