2023-06-30 17:31:51 |
Stefan Lasiewski |
description |
Ubuntu 20.04 ships with a very old version of ruby-unicode-display-width, which includes a library that was deprecated in 2018.
As a result, some ruby utilities print an error such as this:
```
stefanl@foreman:~ $ hammer --help
NOTE: Gem.gunzip is deprecated; use Gem::Util.gunzip instead. It will be removed on or after 2018-12-01.
Gem.gunzip called from /usr/lib/ruby/vendor_ruby/unicode/display_width/index.rb:5.
```
The library was fixed in version 1.3.3 which was released in 2018 according to https://github.com/janlelis/unicode-display_width/issues/17 . However, Ubuntu 20.04.6 still ships with version 1.1.3-1, which was released in 2018.
> 1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
```
lsb_release -rd
Description: Ubuntu 20.04.6 LTS
Release: 20.04
```
> 2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
```
# apt-cache policy ruby-unicode-display-width
ruby-unicode-display-width:
Installed: 1.1.3-1
Candidate: 1.1.3-1
Version table:
*** 1.1.3-1 500
500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
100 /var/lib/dpkg/status
root@bigbird:~#
```
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ruby-unicode-display-width 1.1.3-1
ProcVersionSignature: Ubuntu 5.4.0-148.165-generic 5.4.231
Uname: Linux 5.4.0-148-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.26
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue May 9 14:23:31 2023
PackageArchitecture: all
ProcEnviron:
TERM=screen-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ruby-unicode-display-width
UpgradeStatus: Upgraded to focal on 2023-05-03 (5 days ago) |
Ubuntu 20.04 ships with a very old version of ruby-unicode-display-width, which includes a library that was deprecated in 2018. Ubuntu should update this package with a modern version.
As a result, some ruby utilities print an error such as this:
```
stefanl@foreman:~ $ hammer --help
NOTE: Gem.gunzip is deprecated; use Gem::Util.gunzip instead. It will be removed on or after 2018-12-01.
Gem.gunzip called from /usr/lib/ruby/vendor_ruby/unicode/display_width/index.rb:5.
```
The library was fixed in version 1.3.3 which was released in 2018 according to https://github.com/janlelis/unicode-display_width/issues/17 . However, Ubuntu 20.04.6 still ships with version 1.1.3-1, which was released in 2018.
> 1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
```
lsb_release -rd
Description: Ubuntu 20.04.6 LTS
Release: 20.04
```
> 2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
```
# apt-cache policy ruby-unicode-display-width
ruby-unicode-display-width:
Installed: 1.1.3-1
Candidate: 1.1.3-1
Version table:
*** 1.1.3-1 500
500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
100 /var/lib/dpkg/status
root@bigbird:~#
```
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ruby-unicode-display-width 1.1.3-1
ProcVersionSignature: Ubuntu 5.4.0-148.165-generic 5.4.231
Uname: Linux 5.4.0-148-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.26
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue May 9 14:23:31 2023
PackageArchitecture: all
ProcEnviron:
TERM=screen-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ruby-unicode-display-width
UpgradeStatus: Upgraded to focal on 2023-05-03 (5 days ago) |
|