Hi i am trying to install some packages in openwrt 18.06.1 but i am getting the following error any one help me please!
root@OpenWrt:~# opkg install git
Unknown package 'git'.
Collected errors:
- opkg_install_cmd: Cannot install package git.
Hi i am trying to install some packages in openwrt 18.06.1 but i am getting the following error any one help me please!
root@OpenWrt:~# opkg install git
Unknown package 'git'.
Collected errors:
Did you run update first
opkg update
https://openwrt.org/packages/table/start?dataflt[Name_pkg-dependencies*~]=git
yes i run this command
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/targets/x86/64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/snapshots/targets/x86/64/packages/Packages.sig
Signature check passed.
root@OpenWrt:~# opkg install git
Unknown package 'git'.
Collected errors:
Have you built your own image and not run the feed commands in the correct order before running make menuconfig? What are the contents of /etc/opkg/distfeeds.conf?
Hi per
thanks for the update
i have this line only in the distfeeds.conf
src/gz openwrt_core http://downloads.openwrt.org/snapshots/targets/x86/64/packages
after adding the following pacakges its working fine is this correct?
src/gz openwrt_base http://downloads.openwrt.org/releases/18.06.1/packages/x86_64/base
src/gz openwrt_luci http://downloads.openwrt.org/releases/18.06.1/packages/x86_64/luci
src/gz openwrt_packages http://downloads.openwrt.org/releases/18.06.1/packages/x86_64/packages
src/gz openwrt_routing http://downloads.openwrt.org/releases/18.06.1/packages/x86_64/routing
src/gz openwrt_telephony http://downloads.openwrt.org/releases/18.06.1/packages/x86_64/telephony
root@OpenWrt:~# opkg install git
Installing git (2.16.3-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/x86_64/packages/git_2.16.3-1_x86_64.ipk
Configuring git.
root@OpenWrt:~# git
I don't know if that's all you need to do. The lines are supposed to be there by default. Missing them is just a symptom of something being wrong in your setup. You may experience other problems.
oh ok is there any possible causes to fix this issue or any steps?
How did you obtain the image? If you built it yourself then you probably didn't run the feed commands correctly.
yes i built the code by using this steps from this url
https://wiki.openwrt.org/doc/howto/build
That's the old wiki. In the new one there are several guides, this one summarizes the required commands using Debian or Ubuntu: https://openwrt.org/docs/guide-developer/quickstart-build-images
Note that the order is important. You need to run the two feed commands before you run make. If you do it correctly it will be possible to select git and all the other packages using make menuconfig. If you are building a squashfs image doing so will save a lot of space.
thanks a lot per i will check and get back to you.