[SOLVED]opkg unable to install vim-full

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page 1, 2  Next
Author Message
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Tue Apr 25, 2023 9:40    Post subject: [SOLVED]opkg unable to install vim-full Reply with quote
What did "vim *" mean?

Code:
~# opkg update
~# opkg upgrade
~# opkg list-installed | grep -i vi
~# opkg install vim-full
Installing vim-full (9.0-1) to root...
Collected errors:
 * check_conflicts_for: The following packages conflict with vim-full:
 * check_conflicts_for:         vim *
 * opkg_install_cmd: Cannot install package vim-full.

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw


Last edited by mwchang on Mon May 08, 2023 7:17; edited 1 time in total
Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2971
Location: Germany

PostPosted: Tue Apr 25, 2023 9:46    Post subject: Reply with quote
That you need to uninstall vim if you want to install vim-full.

Code:
opkg remove --autoremove vim
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Tue Apr 25, 2023 10:01    Post subject: Reply with quote
ho1Aetoo wrote:
That you need to uninstall vim if you want to install vim-full.

Code:
opkg remove --autoremove vim

I did remove vim, and made sure that it's gone by running "opkg list-installed | grep -i vi".

Anyway, I found that I could use "--force-depends" to install it. Smile

Funny thing is the same error happened if I then removed and installed vim-full again. SO the "vim *" error didn't go away after installing vim-full once.

vim still works after installing the package with "--force-depends".

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2971
Location: Germany

PostPosted: Tue Apr 25, 2023 10:06    Post subject: Reply with quote
yes great idea, the conflicts are there just for fun and not because the two packages provide partially identical files.

Break what you want
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Tue Apr 25, 2023 10:10    Post subject: Reply with quote
ho1Aetoo wrote:
yes great idea, the conflicts are there just for fun and not because the two packages provide partially identical files.

Break what you want

Could I report this error to Entware maintainers? How?

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2971
Location: Germany

PostPosted: Tue Apr 25, 2023 10:11    Post subject: Reply with quote
The error is in your head.

The package vim is the stripped down variant of vim
and the package vim-full is the version with all features - you can NOT install both packages at the same time.
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Tue Apr 25, 2023 10:14    Post subject: Reply with quote
ho1Aetoo wrote:
The error is in your head.

The package vim is the stripped down variant of vim
and the package vim-full is the version with all features - you can NOT install both packages at the same time.

But I had removed vim (the Tiny build) before installing vim-full. There was nothing left (~# opkg list-installed | grep -i vi ) related to vim when I run "opkg install vim-full", except the vi of DD-WRT's Busybox.

It's not in my head. Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2971
Location: Germany

PostPosted: Tue Apr 25, 2023 10:30    Post subject: Reply with quote
Then your package database is probably broken if it thinks that vim is installed.
(force is a great way to break it, by the way)

Code:
root@DD-WRT:/# opkg install vim
Installing vim (9.0-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/vim_9.0-1_armv7-3.2.ipk
Installing libncurses (6.4-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libncurses_6.4-1_armv7-3.2.ipk
Configuring libncurses.
Configuring vim.

root@DD-WRT:/# opkg install vim-full
Installing vim-full (9.0-1) to root...
Collected errors:
 * check_conflicts_for: The following packages conflict with vim-full:
 * check_conflicts_for:    vim *
 * opkg_install_cmd: Cannot install package vim-full.


root@DD-WRT:/# opkg remove --autoremove vim
Removing package vim from root...
libncurses was autoinstalled and is now orphaned, removing.
Removing package libncurses from root...

root@DD-WRT:/# opkg install vim-full
Installing vim-full (9.0-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/vim-full_9.0-1_armv7-3.2.ipk
Installing libncurses (6.4-1) to root...
Downloading http://bin.entware.net/armv7sf-k3.2/libncurses_6.4-1_armv7-3.2.ipk
Configuring libncurses.
Configuring vim-full.

root@DD-WRT:/# opkg install vim-full
Package vim-full (9.0-1) installed in root is up to date.
root@DD-WRT:/# opkg list-installed | grep -i vi
vim-full - 9.0-1
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Tue Apr 25, 2023 10:44    Post subject: Reply with quote
ho1Aetoo wrote:
Then your package database is probably broken if it thinks that vim is installed.

Thanks.

Other than deleting everything opkg and restarted, could I resolve or remove this unknown "vim *" conflict?

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2971
Location: Germany

PostPosted: Tue Apr 25, 2023 10:47    Post subject: Reply with quote
install vim again and remove it properly and hope it solves the problem.
But if vim is not installed but the database thinks it is installed then there is definitely something wrong.
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Tue Apr 25, 2023 10:50    Post subject: Reply with quote
ho1Aetoo wrote:
install vim again and remove it properly and hope it solves the problem.
But if vim is not installed but the database thinks it is installed then there is definitely something wrong.

Failed to find anything in Google about repairing the Entware database....

And the error didn't list the file(s) in conflict, well...

Thank you again!!

BTW, the content of the two packages:
Code:
Package vim-full (9.0-1) is installed on root and has the following files:
/opt/bin/vimdiff
/opt/share/vim/vimrc
/opt/bin/vim
/opt/lib/upgrade/keep.d/vim-full

Package vim (9.0-1) is installed on root and has the following files:
/opt/share/vim/vimrc
/opt/bin/vim
/opt/lib/upgrade/keep.d/vim

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6436
Location: UK, London, just across the river..

PostPosted: Tue Apr 25, 2023 12:35    Post subject: Reply with quote
Laughing Laughing bangin my head ages ago with vim...i decided just to install nano instead..
than happy days... Cool

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Tue Apr 25, 2023 12:37    Post subject: Reply with quote
Alozaros wrote:
Laughing Laughing bangin my head ages ago with vim...i decided just to install nano instead..
than happy days... Cool

I am fine with vim. I first used vi (no vim) of NCR Tower mini-computer in school decades ago. It's not that hard to use. Somehow I never forgot about vi's commands.

Back in DOS days, I used Wordstar-like editors, including Sidekick and QEdit. Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw


Last edited by mwchang on Tue Apr 25, 2023 12:45; edited 3 times in total
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Tue Apr 25, 2023 12:40    Post subject: Reply with quote
I actually executed "opkg remove --autoremove *" multiple times to eliminate all packages, reboot router, run generic.sh again to build a new Entware base. Same error when "opkg install vim-full"!

I will try again later. Maybe I didn't really remove all Entware system files. Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2971
Location: Germany

PostPosted: Tue Apr 25, 2023 12:44    Post subject: Reply with quote
You should not uninstall all packages but vim.

And it would be very helpful if you could post the complete output so I can see which package is installed from which feed.
As you can see it works fine for me

Code:
opkg remove --autoremove vim
opkg remove --autoremove vim-full
opkg install vim
opkg remove --autoremove vim
opkg install vim-full


if this does not work

Code:
rm -rf /opt/*


and start from scratch
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum