Modify

Opened 2 years ago

Last modified 21 months ago

#20646 reopened defect

opkg with dest_name "No such file or directory" error

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: base system Version: Trunk
Keywords: Cc:

Description

Ever since upgrading to chaos calmer, when I use the destination argument when installing/removing packages to my USB, I see the below errors regarding the package management files.. The error message appears to be related to a package related files off the root of the file system while the opkg script appears to be installing the package related files relative to the alternate destination.. I am not sure which is the correct location for the package related files .. but the binaries related to the packages appear to be properly installed. Note, this happens on all packages and isn't related to only the below tcpdump package.
#####################################
# opkg -d usb install tcpdump
Installing tcpdump (4.5.1-4) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/tcpdump_4.5.1-4_ar71xx.ipk.
Configuring tcpdump.
grep: /usr/lib/opkg/info/tcpdump.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/tcpdump.list': No such file or directory
# find / -name tcpdump.control
/mnt/usb/usr/lib/opkg/info/tcpdump.control
# find / -name tcpdump.list
/mnt/usb/usr/lib/opkg/info/tcpdump.list
# opkg -d usb remove tcpdump
Removing package tcpdump from usb...
cat: can't open '/usr/lib/opkg/info/tcpdump.list': No such file or directory
# find / -name tcpdump.list
# opkg -d usb install tcpdump
Installing tcpdump (4.5.1-4) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/tcpdump_4.5.1-4_ar71xx.ipk.
Configuring tcpdump.
grep: /usr/lib/opkg/info/tcpdump.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/tcpdump.list': No such file or directory
# find / -name tcpdump.control
/mnt/usb/usr/lib/opkg/info/tcpdump.control
# find / -name tcpdump.list
/mnt/usb/usr/lib/opkg/info/tcpdump.list
# find / -name tcpdump
/mnt/usb/usr/sbin/tcpdump
#####################################
# cat /etc/opkg.conf
dest root /
dest ram /tmp
dest usb /mnt/usb
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz chaos_calmer_base http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base
src/gz chaos_calmer_luci http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/luci
src/gz chaos_calmer_packages http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages
src/gz chaos_calmer_routing http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing
src/gz chaos_calmer_telephony http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/telephony
src/gz chaos_calmer_management http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management
option check_signature 1
#####################################
# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='15.05'
DISTRIB_REVISION='r46767'
DISTRIB_CODENAME='chaos_calmer'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer 15.05'
DISTRIB_TAINTS=

Attachments (0)

Change History (3)

comment:1 Changed 2 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with r46975

comment:2 Changed 21 months ago by anonymous

How to resolved this problem?

comment:3 Changed 21 months ago by diegoweb

  • Resolution fixed deleted
  • Status changed from closed to reopened

Running build r48532 I still facing this issue.

I tried to install APACHE and PHP5 PHP5-CGI but the same errors is given to me:

root@OpenWrt:~# opkg -dest usb install apache
Installing apache (2.2.31-1) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/apache_2.2.31-1_ar71xx.ipk.
Installing libapr (1.5.2-1) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/libapr_1.5.2-1_ar71xx.ipk.
Installing libuuid (2.25.2-4) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/base/libuuid_2.25.2-4_ar71xx.ipk.
Installing libaprutil (1.5.4-1) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/libaprutil_1.5.4-1_ar71xx.ipk.
Installing libexpat (2.1.0-3) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/libexpat_2.1.0-3_ar71xx.ipk.
Installing libsqlite3 (3081101-1) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/libsqlite3_3081101-1_ar71xx.ipk.
Installing libpcre (8.38-1) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/libpcre_8.38-1_ar71xx.ipk.
Installing unixodbc (2.3.4-2) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/unixodbc_2.3.4-2_ar71xx.ipk.
Installing libltdl (2.4-1) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/base/libltdl_2.4-1_ar71xx.ipk.
rm: can't remove '/usr/sbin/httpd': No such file or directory
You should take a look in the initscripts, busybox's httpd
 uses some parameters which are maybe unsupported by apache.
Configuring libpcre.
grep: /usr/lib/opkg/info/libpcre.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/libpcre.list': No such file or directory
Configuring libuuid.
grep: /usr/lib/opkg/info/libuuid.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/libuuid.list': No such file or directory
Configuring libapr.
grep: /usr/lib/opkg/info/libapr.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/libapr.list': No such file or directory
Configuring libexpat.
grep: /usr/lib/opkg/info/libexpat.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/libexpat.list': No such file or directory
Configuring libsqlite3.
grep: /usr/lib/opkg/info/libsqlite3.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/libsqlite3.list': No such file or directory
Configuring libaprutil.
grep: /usr/lib/opkg/info/libaprutil.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/libaprutil.list': No such file or directory
Configuring libltdl.
grep: /usr/lib/opkg/info/libltdl.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/libltdl.list': No such file or directory
Configuring unixodbc.
grep: /usr/lib/opkg/info/unixodbc.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/unixodbc.list': No such file or directory
Configuring apache.
grep: /usr/lib/opkg/info/apache.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/apache.list': No such file or directory
root@OpenWrt:~# apachectl restart
-ash: apachectl: not found

And php5 php5-cgi

root@OpenWrt:~# opkg -dest usb install php5 php5-cgi
Installing php5 (5.6.17-1) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/php5_5.6.17-1_ar71xx.ipk.
Installing libxml2 (2.9.2-3) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/libxml2_2.9.2-3_ar71xx.ipk.
Installing php5-cgi (5.6.17-1) to usb...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages/php5-cgi_5.6.17-1_ar71xx.ipk.
Configuring libxml2.
grep: /usr/lib/opkg/info/libxml2.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/libxml2.list': No such file or directory
Configuring php5.
grep: /usr/lib/opkg/info/php5.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/php5.list': No such file or directory
Configuring php5-cgi.
grep: /usr/lib/opkg/info/php5-cgi.control: No such file or directory
cat: can't open '/usr/lib/opkg/info/php5-cgi.list': No such file or directory

About my OpenWRT set-up:

root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='15.05.1'
DISTRIB_REVISION='r48532'
DISTRIB_CODENAME='chaos_calmer'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer 15.05.1'
DISTRIB_TAINTS=''

How can I fix it?

Add Comment

Modify Ticket

Action
as reopened .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.