Public bug reported:

there is a pretty big and potentially devastating bug lurking for tmux
users upgrading from noble to resolute and I am surprised it hasn't been
caught before.

tmux version 3.6 in resolute is backwards-incompatible with the one in
noble (3.4).  More details at https://github.com/tmux/tmux/issues/4699
You can now run into serious issues if you start do-release-upgrade in a
tmux session and let it run for a while.  When you later try to
reconnect you might be unable to do so because the tmux 3.4 session
cannot be attached to from tmux 3.6 which do-release-upgrade might have
already installed for you.  You will always be told "open terminal
failed: not a terminal".  I think an ordinary user will most likely
conclude the only option is a hard reboot.  This would be at a point
when the system is not noble anymore and not yet resolute.  Whether the
reboot succeeds and recovery is possible is not guaranteed.

Ubuntu needs to provide a better experience here, if nothing more, than
a big fat warning at the very least.

To reattach to the session, an affected user in the meantime from a
terminal can redownload the noble tmux package and some necessary
libraries.  Then use LD_LIBRARY_PATH to get the older tmux to actually
work.

mkdir /tmp/tmux-noble
cd /tmp/
wget 
http://mirrors.kernel.org/ubuntu/pool/main/n/ncurses/libncurses6_6.4+20240113-1ubuntu2.2_amd64.deb
wget 
http://mirrors.kernel.org/ubuntu/pool/main/n/ncurses/libtinfo6_6.4+20240113-1ubuntu2.2_amd64.deb
wget 
http://mirrors.kernel.org/ubuntu/pool/main/t/tmux/tmux_3.4-1ubuntu0.1_amd64.deb
for deb in libncurses6_6.4+20240113-1ubuntu2.2_amd64.deb 
libtinfo6_6.4+20240113-1ubuntu2.2_amd64.deb tmux_3.4-1ubuntu0.1_amd64.deb; do 
dpkg-deb -x $deb /tmp/tmux-noble/;done
LD_LIBRARY_PATH="/tmp/tmux-noble/usr/lib/x86_64-linux-gnu"/tmp/tmux-noble/usr/bin/tmux
 -V

If that succeeds go ahead and actually attach.

LD_LIBRARY_PATH="/tmp/tmux-noble/usr/lib/x86_64-linux-gnu"/tmp/tmux-
noble/usr/bin/tmux attach

** Affects: tmux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: noble regression-release resolute

** Description changed:

  there is a pretty big and potentially devastating bug lurking for tmux
  users upgrading from noble to resolute and I am surprised it hasn't been
  caught before.
  
  tmux version 3.6 in resolute is backwards-incompatible with the one in
  noble (3.4).  More details at https://github.com/tmux/tmux/issues/4699
  You can now run into serious issues if you start do-release-upgrade in a
  tmux session and let it run for a while.  When you later try to
  reconnect you might be unable to do so because the tmux 3.4 session
  cannot be attached to from tmux 3.6 which do-release-upgrade might have
  already installed for you.  You will always be told "open terminal
  failed: not a terminal".  I think an ordinary user will most likely
  conclude the only option is a hard reboot.  This would be at a point
  when the system is not noble anymore and not yet resolute.  Whether the
  reboot succeeds and recovery is possible is not guaranteed.
  
  Ubuntu needs to provide a better experience here, if nothing more than a
  big fat warning.
  
  To reattach to the session, an affected user in the meantime from a
  terminal can redownload the noble tmux package and some necessary
  libraries.  Then use LD_LIBRARY_PATH to get the older tmux to actually
  work.
  
  mkdir /tmp/tmux-noble
  cd /tmp/
  wget 
http://mirrors.kernel.org/ubuntu/pool/main/n/ncurses/libncurses6_6.4+20240113-1ubuntu2.2_amd64.deb
  wget 
http://mirrors.kernel.org/ubuntu/pool/main/n/ncurses/libtinfo6_6.4+20240113-1ubuntu2.2_amd64.deb
  wget 
http://mirrors.kernel.org/ubuntu/pool/main/t/tmux/tmux_3.4-1ubuntu0.1_amd64.deb
- for deb in libncurses6_6.4+20240113-1ubuntu2.2_amd64.deb 
libtinfo6_6.4+20240113-1ubuntu2.2_amd64.deb tmux_3.4-1ubuntu0.1_amd64.deb; do 
dpkg-deb -x $deb /tmp/tmux-noble/
+ for deb in libncurses6_6.4+20240113-1ubuntu2.2_amd64.deb 
libtinfo6_6.4+20240113-1ubuntu2.2_amd64.deb tmux_3.4-1ubuntu0.1_amd64.deb; do 
dpkg-deb -x $deb /tmp/tmux-noble/;done
  
LD_LIBRARY_PATH="/tmp/tmux-noble/usr/lib/x86_64-linux-gnu"/tmp/tmux-noble/usr/bin/tmux
 -V
  
  If that succeeds go ahead and actually attach.
  
  LD_LIBRARY_PATH="/tmp/tmux-noble/usr/lib/x86_64-linux-gnu"/tmp/tmux-
  noble/usr/bin/tmux attach

** Tags removed: reso
** Tags added: noble2resolute resolute

** Tags removed: noble2resolute

** Description changed:

  there is a pretty big and potentially devastating bug lurking for tmux
  users upgrading from noble to resolute and I am surprised it hasn't been
  caught before.
  
  tmux version 3.6 in resolute is backwards-incompatible with the one in
  noble (3.4).  More details at https://github.com/tmux/tmux/issues/4699
  You can now run into serious issues if you start do-release-upgrade in a
  tmux session and let it run for a while.  When you later try to
  reconnect you might be unable to do so because the tmux 3.4 session
  cannot be attached to from tmux 3.6 which do-release-upgrade might have
  already installed for you.  You will always be told "open terminal
  failed: not a terminal".  I think an ordinary user will most likely
  conclude the only option is a hard reboot.  This would be at a point
  when the system is not noble anymore and not yet resolute.  Whether the
  reboot succeeds and recovery is possible is not guaranteed.
  
- Ubuntu needs to provide a better experience here, if nothing more than a
- big fat warning.
+ Ubuntu needs to provide a better experience here, if nothing more, than
+ a big fat warning at the very least.
  
  To reattach to the session, an affected user in the meantime from a
  terminal can redownload the noble tmux package and some necessary
  libraries.  Then use LD_LIBRARY_PATH to get the older tmux to actually
  work.
  
  mkdir /tmp/tmux-noble
  cd /tmp/
  wget 
http://mirrors.kernel.org/ubuntu/pool/main/n/ncurses/libncurses6_6.4+20240113-1ubuntu2.2_amd64.deb
  wget 
http://mirrors.kernel.org/ubuntu/pool/main/n/ncurses/libtinfo6_6.4+20240113-1ubuntu2.2_amd64.deb
  wget 
http://mirrors.kernel.org/ubuntu/pool/main/t/tmux/tmux_3.4-1ubuntu0.1_amd64.deb
  for deb in libncurses6_6.4+20240113-1ubuntu2.2_amd64.deb 
libtinfo6_6.4+20240113-1ubuntu2.2_amd64.deb tmux_3.4-1ubuntu0.1_amd64.deb; do 
dpkg-deb -x $deb /tmp/tmux-noble/;done
  
LD_LIBRARY_PATH="/tmp/tmux-noble/usr/lib/x86_64-linux-gnu"/tmp/tmux-noble/usr/bin/tmux
 -V
  
  If that succeeds go ahead and actually attach.
  
  LD_LIBRARY_PATH="/tmp/tmux-noble/usr/lib/x86_64-linux-gnu"/tmp/tmux-
  noble/usr/bin/tmux attach

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2168396

Title:
  problem on noble to resolute upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/2168396/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to