OpenWrt Forum Archive

Topic: ipkg refuses to work

The content of this topic has been archived on 2 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have reflashed my fonera a couple of times, but cannot get ipkg to work, no matter what package I do, even if I've updated ipkg I get this when I do an ipkg install [package]:

Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package php-thttpd_2.25b-5.2.
Check the spelling or perhaps run 'ipkg update'
root@OpenWrt:~#

I do not see "php-thttpd_2.25b-5.2" when I type "ipkg list". Are you trying to install locally?

I had some problems with ipkg because when I download one Safari adds ".gz" to the end of the file name. So everytime it would try and unpack before installing which it can't and shouldn't. Make sure it says "ipk" and that the directory and file name is done exactly as it appears.

Btw. php-thttpd_2.25b-5.2 is not a official OpenWrt package...

Same problem here.

root@granny:~# ipkg update
Downloading http://downloads.openwrt.org/kamikaze/packages/mips//Packages
Updated list of available packages in /usr/lib/ipkg/lists/packages
Downloading http://downloads.openwrt.org/backports/rc5//Packages
Updated list of available packages in /usr/lib/ipkg/lists/Backports
Downloading http://downloads.openwrt.org/kamikaze/7.09/brcm-2.4/packages/Packages
Updated list of available packages in /usr/lib/ipkg/lists/release
Downloading http://downloads.x-wrt.org/xwrt/kamikaze/7.09/brcm-2.4/packages/Packages
Updated list of available packages in /usr/lib/ipkg/lists/X-Wrt
Done.
root@granny:~# ipkg list openssh-sftp-server
openssh-sftp-server - 4.5p1-1 - OpenSSH SFTP server
Done.
root@granny:~# ipkg install openssh-sftp-server
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package openssh-sftp-server.
Check the spelling or perhaps run 'ipkg update'

After this i try:

root@granny:~# wget http://downloads.openwrt.org/kamikaze/packages/mips/openssh-sftp-server_4.5p1-1_mips.ipk
Connecting to downloads.openwrt.org [195.56.146.238:80]
openssh-sftp-server_ 100% |***********************************************************************************************************| 20791    --:--:-- ETA
root@granny:~# ls -al
...
-rw-r--r--    1 root     root        20791 Jan  1 00:18 openssh-sftp-server_4.5p1-1_mips.ipk
...
root@granny:~# ipkg -V3 install openssh-sftp-server_4.5p1-1_mips.ipk
pkg_info_preinstall_check: updating arch priority for each package
Clearing state_want and state_flag for pkg=openssh-sftp-server (arch_priority=0 flag=16 want=2)
pkg_info_preinstall_check: update file owner list
best installation candidate for openssh-sftp-server
 adding openssh-sftp-server to providers
  openssh-sftp-server arch=mips arch_priority=0 version=4.5p1-1
Configuring unpacked packages
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package openssh-sftp-server.
Check the spelling or perhaps run 'ipkg update'
hash_table[pkg-hash] n_buckets=0 n_elements=825 max_conflicts=0 n_conflicts=0
hash_table[file-hash] n_buckets=0 n_elements=408 max_conflicts=0 n_conflicts=0
hash_table[obs-file-hash] n_buckets=0 n_elements=0 max_conflicts=0 n_conflicts=0

I read in this forum that it might be a problem with the ipkg embedded in busybox. So we might install a standalone ipkg and disable the one busybox uses. Any ideas how to do that ?

The discussion might have continued from here.