The following packages conflict with vnstati2

I'm trying to install the most up-to-date version of Vnstat, but it's conflicting.
Removed everything: opkg remove vnstat luci-app-vnstat

Packages: vnstati2 luci-app-vnstat2

root@OpenWrt:~# opkg install vnstati2
Installing vnstati2 (2.9-1) to root...
Collected errors:
 * check_conflicts_for: The following packages conflict with vnstati2:
 * check_conflicts_for: 	vnstat * 
 * opkg_install_cmd: Cannot install package vnstati2.

Try

opkg remove vnstat luci-app-vnstat vnstati --force-depends 
opkg install vnstati2
2 Likes

Thank you very much.

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/22.03.3/targets/ramips/mt7621/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/22.03.3/targets/ramips/mt7621/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.

root@OpenWrt:~# opkg install vnstati2
Installing vnstati2 (2.9-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/packages/vnstati2_2.9-1_mipsel_24kc.ipk
Installing vnstat2 (2.9-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mipsel_24kc/packages/vnstat2_2.9-1_mipsel_24kc.ipk
Configuring vnstat2.
Configuring vnstati2.
Collected errors:
 * resolve_conffiles: Existing conffile /etc/config/vnstat is different from the conffile in the new package. The new conffile will be placed at /etc/config/vnstat-opkg.
root@OpenWrt:~# v
validate_data  vi             vnstat         vnstatd        vnstati
root@OpenWrt:~# vnstat
vnstat   vnstatd  vnstati
root@OpenWrt:~# vnstat

                      rx      /      tx      /     total    /   estimated
 br-lan:
       2023-03      6.61 GiB  /  549.08 MiB  /    7.15 GiB  /   11.69 GiB
         today      6.61 GiB  /  549.08 MiB  /    7.15 GiB  /    7.46 GiB

 wan:
       2023-03    521.96 MiB  /    6.72 GiB  /    7.23 GiB  /   11.82 GiB
         today    521.96 MiB  /    6.72 GiB  /    7.23 GiB  /    7.54 GiB

root@OpenWrt:~# vnstat --version
vnStat 2.9 by Teemu Toivola <tst at iki dot fi>
root@OpenWrt:~#

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.