PDA

Bekijk de volledige versie : Failed to install ipkg



Galleons
15-12-2006, 19:51
I got the following error when I try to install ipkg.


[admin@(none) /opt]$ ipkg.sh install ipkg

Downloading http://wl500g.dyndns.org/ipkg/ipkg_0.99.149-2_mipsel.ipk ...
Connecting to wl500g.dyndns.org[212.192.248.17]:80
ipkg_0.99.149-2_mips 100% |***************************************| 71113 00:00 ETA
Done.
Unpacking ipkg...Done.
Configuring ipkg...tar: Cannot create directory `./opt/bin': No such file or directory
tar: ./opt/bin/ipkg: No such file or directory
Done.

I have followed the instruction to create /opt/tmp/ipkg. Currently, I don't create a swap partition. Is it a must? Could someone help? I am a beginner to Linux.


[admin@(none) root]$ free
total used free shared buffers
Mem: 30140 14608 15532 0 3260
Swap: 0 0 0
Total: 30140 14608 15532
[admin@(none) root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 2944 2944 0 100% /
/dev/discs/disc0/part1 10690160 2423880 7714452 24% /opt
/dev/discs/disc0/part5 20659352 3896348 16763004 19% /tmp/harddisk
[admin@(none) root]$


Galleons

calebz
15-12-2006, 21:03
Do you have proper filesystems on that HDD ?

Galleons
16-12-2006, 02:01
I think so because the log shows it and I can access the data in the drive.


Jan 1 08:00:04 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan 1 08:00:04 kernel: Vendor: ST340015 Model: A Rev: 0811
Jan 1 08:00:04 kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 1 08:00:04 kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Jan 1 08:00:04 kernel: SCSI device sda: 78165360 512-byte hdwr sectors (40021 MB)

I think the reason it cannot create the directory is because the directory is just a link. And, the link is actually not valid.


[admin@(none) /]$ ls -l ./opt/bin
lrwxrwxrwx 1 admin root 9 Jan 1 1970 ./opt/bin -> /apps/bin

But, I don't know how to change it and what should I change.