With the aptitude TUI or command line, it is not possible to upgrade
wireshark to 4.2.0-1 without explicitly upgrading wireshark-common
too or removing wireshark-qt. With both interfaces, the proposed
default is to keep both wireshark and wireshark-qt at their current
version, and for the alternative actions, aptitude never proposes to
upgrade wireshark.
Note that the wireshark package now has:
Replaces: wireshark-gtk (<< 3.0.0~), wireshark-qt
Breaks: wireshark-gtk (<< 3.0.0~), wireshark-qt
That's why wireshark-qt is no longer useful and could be safely
removed.
For instance, with the command line:
# aptitude install wireshark
The following NEW packages will be installed:
libnghttp3-3{a} libopencore-amrnb0{a} libqt6dbus6{a} libqt6gui6{a}
libqt6multimedia6{a} libqt6network6{a} libqt6opengl6{a}
libqt6printsupport6{a} libqt6qml6{a} libqt6qmlmodels6{a} libqt6quick6{a}
libqt6waylandclient6{a} libqt6waylandcompositor6{a}
libqt6waylandeglclienthwintegration6{a}
libqt6waylandeglcompositorhwintegration6{a} libqt6widgets6{a}
libqt6wlshellintegration6{a} libts0{a} libwireshark17{a} libwiretap14{a}
libwsutil15{a} qt6-gtk-platformtheme{a} qt6-qpa-plugins{a} qt6-wayland{a}
The following packages will be REMOVED:
wireshark-qt{a}
The following packages will be upgraded:
libwireshark-data wireshark{b} wireshark-doc
3 packages upgraded, 24 newly installed, 1 to remove and 74 not upgraded.
Need to get 48.7 MB of archives. After unpacking 172 MB will be used.
The following packages have unmet dependencies:
wireshark : Depends: wireshark-common (= 4.2.0-1) but 4.0.11-1 is installed and it is kept back
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) wireshark [4.0.11-1 (now)]
2) wireshark-qt [4.0.11-1 (now, unstable)]
Accept this solution? [Y/n/q/?]
BTW, concerning the unmet dependency
wireshark : Depends: wireshark-common (= 4.2.0-1) but 4.0.11-1 is installed and it is kept back
why doesn't aptitude propose to upgrade wireshark-common?
That's the obvious solution!
Indeed, the following works:
# aptitude install wireshark wireshark-common
The following NEW packages will be installed:
libnghttp3-3{a} libopencore-amrnb0{a} libqt6dbus6{a} libqt6gui6{a}
libqt6multimedia6{a} libqt6network6{a} libqt6opengl6{a}
libqt6printsupport6{a} libqt6qml6{a} libqt6qmlmodels6{a} libqt6quick6{a}
libqt6waylandclient6{a} libqt6waylandcompositor6{a}
libqt6waylandeglclienthwintegration6{a}
libqt6waylandeglcompositorhwintegration6{a} libqt6widgets6{a}
libqt6wlshellintegration6{a} libts0{a} libwireshark17{a} libwiretap14{a}
libwsutil15{a} qt6-gtk-platformtheme{a} qt6-qpa-plugins{a} qt6-wayland{a}
The following packages will be REMOVED:
libwireshark16{u} libwiretap13{u} libwsutil14{u} wireshark-qt{a}
The following packages will be upgraded:
libwireshark-data wireshark wireshark-common wireshark-doc
4 packages upgraded, 24 newly installed, 4 to remove and 73 not upgraded.
Need to get 49.4 MB of archives. After unpacking 57.3 MB will be used.
Do you want to continue? [Y/n/?]
and so does
# aptitude install wireshark wireshark-qt-
The following NEW packages will be installed:
libnghttp3-3{a} libopencore-amrnb0{a} libqt6dbus6{a} libqt6gui6{a}
libqt6multimedia6{a} libqt6network6{a} libqt6opengl6{a}
libqt6printsupport6{a} libqt6qml6{a} libqt6qmlmodels6{a} libqt6quick6{a}
libqt6waylandclient6{a} libqt6waylandcompositor6{a}
libqt6waylandeglclienthwintegration6{a}
libqt6waylandeglcompositorhwintegration6{a} libqt6widgets6{a}
libqt6wlshellintegration6{a} libts0{a} libwireshark17{a} libwiretap14{a}
libwsutil15{a} qt6-gtk-platformtheme{a} qt6-qpa-plugins{a} qt6-wayland{a}
The following packages will be REMOVED:
libwireshark16{u} libwiretap13{u} libwsutil14{u} wireshark-qt
The following packages will be upgraded:
libwireshark-data wireshark wireshark-common wireshark-doc
4 packages upgraded, 24 newly installed, 4 to remove and 73 not upgraded.
Need to get 49.4 MB of archives. After unpacking 57.3 MB will be used.
Do you want to continue? [Y/n/?]