Public bug reported:

# Problem

% bsfilter ~/Mail/fcc/1
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in 
`require': cannot load such file -- sdbm (LoadError)
Did you mean?  dbm
        from 
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in 
`require'
        from /usr/bin/bsfilter:3106:in `get_options'
        from /usr/bin/bsfilter:3262:in `setup'
        from /usr/bin/bsfilter:3413:in `<main>'


# Workaround

Download and use ruby-sdbm_1.0.0-2_amd64.deb

% wget 
http://mirrors.kernel.org/ubuntu/pool/universe/r/ruby-sdbm/ruby-sdbm_1.0.0-2_amd64.deb
...
% sudo dpkg -i ruby-sdbm_1.0.0-2_amd64.deb
...
% bsfilter ~/Mail/fcc/1
combined probability /home/haruyama/Mail/fcc/1 1 0.500001

# Environment

% lsb_release -a 
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:        22.04
Codename:       jammy

% dpkg -l bsfilter ruby
...
ii  bsfilter       1:1.0.19-2.1 all          Bayesian spam filter
ii  ruby           1:3.0~exp1   amd64        Interpreter of object-oriented 
scripting language Ruby (default version)

% apt-cache policy bsfilter
bsfilter:
  インストールされているバージョン: 1:1.0.19-2.1
  候補:               1:1.0.19-2.1
  バージョンテーブル:
 *** 1:1.0.19-2.1 500
        500 http://jp.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://jp.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
        100 /var/lib/dpkg/status

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

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

Title:
  bsfilter on jammy needs ruby-sdbm

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


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

Reply via email to