• Currently using VMware at work? We want to hear from you.

    Thinking of making a switch from VMware? We'd love to hear your thoughts and feedback about which hypervisor you have been researching or already using. Click here to vote and share your thoughts! You can vote HERE!

pkg_add -r ..

Status
Not open for further replies.

sympton

Dabbler
Joined
Aug 1, 2011
Messages
23
Tried to install few packages with pkg_add -r but it fails everytime..

Code:
freenas# pkg_add -r gdisk
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/gdisk.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/All/e2fsprogs-libuuid-1.41.14.tbz... Done.
man/man1/uuidgen.1.gz: Failed to create dir 'man'Can't create 'man/man1/uuidgen.1.gz'
man/man3/uuid.3.gz: Failed to create dir 'man'Can't create 'man/man3/uuid.3.gz'
man/man3/uuid_clear.3.gz: Failed to create dir 'man'Can't create 'man/man3/uuid_clear.3.gz'
man/man3/uuid_compare.3.gz: Failed to create dir 'man'Can't create 'man/man3/uuid_compare.3.gz'
man/man3/uuid_copy.3.gz: Failed to create dir 'man'Can't create 'man/man3/uuid_copy.3.gz'
man/man3/uuid_generate.3.gz: Failed to create dir 'man'Can't create 'man/man3/uuid_generate.3.gz'
man/man3/uuid_is_null.3.gz: Failed to create dir 'man'Can't create 'man/man3/uuid_is_null.3.gz'
man/man3/uuid_parse.3.gz: Failed to create dir 'man'Can't create 'man/man3/uuid_parse.3.gz'
man/man3/uuid_time.3.gz: Failed to create dir 'man'Can't create 'man/man3/uuid_time.3.gz'
man/man3/uuid_unparse.3.gz: Failed to create dir 'man'Can't create 'man/man3/uuid_unparse.3.gz'
man/man3/uuid_generate_random.3.gz: Failed to create dir 'man'Can't create 'man/man3/uuid_generate_random.3.gz'
man/man3/uuid_generate_time.3.gz: Failed to create dir 'man'Can't create 'man/man3/uuid_generate_time.3.gz'
man/man8/uuidd.8.gz: Failed to create dir 'man'Can't create 'man/man8/uuidd.8.gz'
bin/uuidgen: Could not unlink
include/uuid/uuid.h: Failed to create dir 'include/uuid'Can't create 'include/uuid/uuid.h'
lib/libuuid.so.1.2: Could not unlink
lib/libuuid.so.1: Could not unlink
lib/libuuid.so: Could not unlink
lib/libuuid.a: Could not unlink
libdata/pkgconfig/uuid.pc: Could not unlink
sbin/uuidd: Could not unlink
tar: Error exit delayed from previous errors.
pkg_add: extract_plist: can not invoke 544 byte tar pipeline: /usr/bin/tar cf - man/man1/uuidgen.1.gz man/man3/uuid.3.gz man/man3/uuid\_clear.3.gz man/man3/uuid\_compare.3.gz man/man3/uuid\_copy.3.gz man/man3/uuid\_generate.3.gz man/man3/uuid\_is\_null.3.gz man/man3/uuid\_parse.3.gz man/man3/uuid\_time.3.gz man/man3/uuid\_unparse.3.gz man/man3/uuid\_generate\_random.3.gz man/man3/uuid\_generate\_time.3.gz man/man8/uuidd.8.gz bin/uuidgen include/uuid/uuid.h lib/libuuid.so.1.2 lib/libuuid.so.1 lib/libuuid.so lib/libuuid.a libdata/pkgconfig/uuid.pc sbin/uuidd|/usr/bin/tar --unlink -xpPf - -C /usr/local
pkg_add: pkg_add of dependency 'e2fsprogs-libuuid-1.41.14' failed!


Same happens with everything. My system is installed to usb stick.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Tthe problem is you need to enable the partition writable. This is a BAD idea because the size of the partitions is very limited and you could end up needing to reflash you USB stick. It is possible with maybe a couple 'small' packages, but not recommended if you are not sure what you're doing. Also pkg_add doesn't update the package database like FreeBSD, so if you mess up you can't just do a pkg_del.
 

sympton

Dabbler
Joined
Aug 1, 2011
Messages
23
oh damn, then i just need to go pack to fnas7 :/ i got 2tb zipped files to unzip... and while i cannot install unzip .. this basically sucks
 

jjstecchino

Contributor
Joined
May 29, 2011
Messages
136

sympton

Dabbler
Joined
Aug 1, 2011
Messages
23
It didnt help, results are the same :/

Code:
freenas# mount -o rw /dev/ufs/FreeNASs1a
freenas# pkg_add -r unzip
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/unzip.tbz... Done.
bin/unzip: Could not unlink
bin/funzip: Could not unlink
bin/unzipsfx: Could not unlink
bin/zipgrep: Could not unlink
bin/zipinfo: Could not unlink
man/man1/unzip.1.gz: Failed to create dir 'man'Can't create 'man/man1/unzip.1.gz'
man/man1/funzip.1.gz: Failed to create dir 'man'Can't create 'man/man1/funzip.1.gz'
man/man1/unzipsfx.1.gz: Failed to create dir 'man'Can't create 'man/man1/unzipsfx.1.gz'
man/man1/zipgrep.1.gz: Failed to create dir 'man'Can't create 'man/man1/zipgrep.1.gz'
man/man1/zipinfo.1.gz: Failed to create dir 'man'Can't create 'man/man1/zipinfo.1.gz'
share/doc/unzip/README: Failed to create dir 'share/doc'Can't create 'share/doc/unzip/README'
share/doc/unzip/WHERE: Failed to create dir 'share/doc'Can't create 'share/doc/unzip/WHERE'
tar: Error exit delayed from previous errors.
pkg_add: leave_playpen: can't chdir back to ''
freenas#


Looks like filesystem is still read-only ..
Im not really a PRO with linux/freebsd, but i was wondering is it possible to make symlinks to a writable partitions from this readonly partition where later installations then goes ?
 

sympton

Dabbler
Joined
Aug 1, 2011
Messages
23
Oh ok, it seems i forgot / after the mount command :)
Code:
mount -o rw /dev/ufs/FreeNASs1a /
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
FreeBSD is a little strange, to make the partition writable you do mount -uw /
 
Status
Not open for further replies.
Top