Ubuntu – I can’t extract tar.bz2 file: error message, .h file: permission denied

12.10drivers

I'm trying to extract r8101-1.023.00.tar.bz2 file, it's a driver(Linux driver for kernel 3.x and 2.6.x and 2.4.x) from [Realtek.com][realtek]. The fact is I get an error message:

error to open the file

…/r8101-1.023.00/src/rtltool.h": permission denied".

Any ideas?

  [realtek]: http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=14&PFid=7&Level=5&Conn=4&DownTypeID=3&GetDown=false#2

What I get after tar -xjvf r8101-1.023.00.tar.bz2

r8101-1.023.00/

r8101-1.023.00/src/

r8101-1.023.00/src/rtltool.h

tar: r8101-1.023.00/src/rtltool.h: No se puede [It can't be] open: Permiso denegado [permission denied]

r8101-1.023.00/src/rtl_eeprom.h

tar: r8101-1.023.00/src/rtl_eeprom.h: No se puede open: Permiso denegado

r8101-1.023.00/src/r8101.h

tar: r8101-1.023.00/src/r8101.h: No se puede open: Permiso denegado

r8101-1.023.00/src/r8101_n.c

tar: r8101-1.023.00/src/r8101_n.c: No se puede open: Permiso denegado

r8101-1.023.00/src/rtl_ethtool.h

tar: r8101-1.023.00/src/rtl_ethtool.h: No se puede open: Permiso denegado

r8101-1.023.00/src/rtl_eeprom.c

tar: r8101-1.023.00/src/rtl_eeprom.c: No se puede open: Permiso denegado

r8101-1.023.00/src/Makefile_linux24x

tar: r8101-1.023.00/src/Makefile_linux24x: No se puede open: Permiso denegado

r8101-1.023.00/src/Makefile

tar: r8101-1.023.00/src/Makefile: No se puede open: Permiso denegado

r8101-1.023.00/src/rtltool.c

tar: r8101-1.023.00/src/rtltool.c: No se puede open: Permiso denegado

r8101-1.023.00/autorun.sh

r8101-1.023.00/readme

r8101-1.023.00/Makefile

tar: Saliendo con fallos debido a errores anteriores [Exiting with failure due to previous errors]

What I get with sudo tar -xjvf r8101-1.023.00.tar.bz2

r8101-1.023.00/
 
r8101-1.023.00/src/

r8101-1.023.00/src/rtltool.h

r8101-1.023.00/src/rtl_eeprom.h

r8101-1.023.00/src/r8101.h

r8101-1.023.00/src/r8101_n.c

r8101-1.023.00/src/rtl_ethtool.h

r8101-1.023.00/src/rtl_eeprom.c

r8101-1.023.00/src/Makefile_linux24x

r8101-1.023.00/src/Makefile

r8101-1.023.00/src/rtltool.c

r8101-1.023.00/autorun.sh

r8101-1.023.00/readme

r8101-1.023.00/Makefile

Best Answer

Save the r8101-1.023.00.tar.bz2 to your home folder, open the terminal Ctrl+Alt+T and copy and paste this command:

tar -xjvf r8101-1.023.00.tar.bz2

The graphical Archive Manager gave me the same permission error, but this worked for me even without sudo.

Related Question