it is way past my bed time, and it still won't work. i actually though i was about to have it working. i guess not. oh well, here are my notes on trying to install libaacs and keydb for playing blu-rays on my old version of mx-linux (apt seems broken for me lately) note, my version of MX is built on debian buster(10) which is a 2019 vintage, so im thinking it might be best to install dependencies from around that time, if apt ends up unfriendly. libaacs config is showing error for libgcrypt gcrypt config is showing error for gpg-error found some old files here: https://gnupg.org/ftp/gcrypt/ so build and install each until it works: cd build/directory ./configure make make check sudo make install note i have already downloaded keydb.cfg and placed it in /home/trygve/.config/aacs/ i found the keydb file from http://fvonline-db.bplaced.net/ this was linked from https://vlc-bluray.whoknowsmy.name/ this was linked from https://wiki.videolan.org/VSG:Usage:Blu-ray/ prog-logs libgpg-error-1.36 ./configure success make success make check all 9 tests passed sudo make install success note probably good to check build+install files before doing what i just did (though GNU is prob safe in this case): ./configure --prefix=/home/testmyinstall make make install ...checking ...nice! (note unspecified --prefix will default to /usr/local) oops i can't trash testmyinstall sudo rm -r testmyinstall that was scary fast!!! continue prog-logs: libgcrypt-1.8.5 ./configure success make success make check All 27 tests passed (1 test was not run) sudo make install success finally libaacs-0.11.1 ./configure success? make YACC src/file/keydbcfg-parser.c ./build-aux/ylwrap: line 176: yacc: command not found make: *** [Makefile:1150: src/file/keydbcfg-parser.c] Error 127 it probably won't work because it is the latest version: https://www.videolan.org/developers/libaacs.html luckily they also provide the old version(i will try from 2019): http://ftp.videolan.org/pub/pub/videolan/libaacs/ last try libaacs-0.9.0 ./configure success? make YACC src/file/keydbcfg-parser.c ./build-aux/ylwrap: line 176: yacc: command not found make: *** [Makefile:935: src/file/keydbcfg-parser.c] Error 127 ...same error...? ...SE says it is related to bison: https://stackoverflow.com/questions/10733238/make-yacc-command-not-found-after-installing-bison ...rings a bell - i seem to remember i was struggling to build Wine on my old version of MX. apt-cache search bison apt search bison (it's been too long, forgot the difference between apt/apt-get) i guess apt is working? idk, i seem to remember packages not installing for me last time(probably when i was tryign to install Wine). sudo apt update Ign:1 http://deb.debian.org/debian buster-updates InRelease Ign:2 http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo buster InRelease Ign:3 http://deb.debian.org/debian buster InRelease Err:4 http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo buster Release 404 Not Found [IP: 2620:8d:8000:15:1ead:ed:c0:ffe 80] Ign:5 http://deb.debian.org/debian-security buster/updates InRelease Err:6 http://deb.debian.org/debian buster-updates Release 404 Not Found [IP: 2a04:4e42:400::644 80] Err:7 http://deb.debian.org/debian buster Release 404 Not Found [IP: 2a04:4e42:400::644 80] Err:8 http://deb.debian.org/debian-security buster/updates Release 404 Not Found [IP: 2a04:4e42:400::644 80] Reading package lists... Done E: The repository 'http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo buster Release' no longer has a Release file. should i even try? i seem to remember last time i tried to install something with apt it didn't work. perhaps i am misremembering some complexity with winhq having their own repository:https://gitlab.winehq.org/wine/wine/-/wikis/Debian-Ubuntu $ apt show bison Package: bison Version: 2:3.3.2.dfsg-1 Priority: optional Section: devel Maintainer: Chuan-kai Lin Installed-Size: 2,307 kB Depends: m4, libc6 (>= 2.17), libbison-dev (= 2:3.3.2.dfsg-1) Suggests: bison-doc Homepage: http://www.gnu.org/software/bison/ Tag: devel::code-generator, devel::lang:c, devel::lang:c++, devel::library, implemented-in::c, interface::commandline, role::devel-lib, role::program, scope::utility, suite::gnu, works-with::software:source Download-Size: 871 kB APT-Sources: http://deb.debian.org/debian buster/main amd64 Packages Description: YACC-compatible parser generator Bison is a general-purpose parser generator that converts a grammar description for an LALR(1) context-free grammar into a C program to parse that grammar. Once you are proficient with Bison, you may use it to develop a wide range of language parsers, from those used in simple desk calculators to complex programming languages. . Bison is upward compatible with Yacc: all properly-written Yacc grammars ought to work with Bison with no change. Anyone familiar with Yacc should be able to use Bison with little trouble. Documentation of the program is in the bison-doc package. $ apt show byacc Package: byacc Version: 20140715-1+b1 Priority: optional Section: devel Source: byacc (20140715-1) Maintainer: Dave Beckett Installed-Size: 164 kB Depends: libc6 (>= 2.3.4) Homepage: http://invisible-island.net/byacc/ Tag: devel::code-generator, implemented-in::c, interface::commandline, role::program, scope::utility, works-with::software:source Download-Size: 82.2 kB APT-Sources: http://deb.debian.org/debian buster/main amd64 Packages Description: public domain Berkeley LALR Yacc parser generator This package provides a parser generator utility that reads a grammar specification from a file and generates an LR(1) parser for it. The parsers consist of a set of LALR(1) parsing tables and a driver routine written in the C programming language. It has a public domain license which includes the generated C. they both say buster, which is my me, so i guess i'll give it a go. https://www.gnu.org/software/bison/ https://invisible-island.net/byacc/byacc.html it's possible i never did this on my MX machine. i think i was actually trying to install Wine on my old mac. i will give apt a try $ sudo apt install bison Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libbison-dev m4 Suggested packages: bison-doc m4-doc The following NEW packages will be installed: bison libbison-dev m4 0 upgraded, 3 newly installed, 0 to remove and 196 not upgraded. Need to get 1,574 kB of archives. After this operation, 3,182 kB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://deb.debian.org/debian buster/main amd64 m4 amd64 1.4.18-2 404 Not Found [IP: 2a04:4e42::644 80] Err:2 http://deb.debian.org/debian buster/main amd64 libbison-dev amd64 2:3.3.2.dfsg-1 404 Not Found [IP: 2a04:4e42::644 80] Err:3 http://deb.debian.org/debian buster/main amd64 bison amd64 2:3.3.2.dfsg-1 404 Not Found [IP: 2a04:4e42::644 80] E: Failed to fetch http://deb.debian.org/debian/pool/main/m/m4/m4_1.4.18-2_amd64.deb 404 Not Found [IP: 2a04:4e42::644 80] E: Failed to fetch http://deb.debian.org/debian/pool/main/b/bison/libbison-dev_3.3.2.dfsg-1_amd64.deb 404 Not Found [IP: 2a04:4e42::644 80] E: Failed to fetch http://deb.debian.org/debian/pool/main/b/bison/bison_3.3.2.dfsg-1_amd64.deb 404 Not Found [IP: 2a04:4e42::644 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? $ sudo apt-get update Ign:1 http://deb.debian.org/debian buster-updates InRelease Ign:2 http://deb.debian.org/debian buster InRelease Ign:3 http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo buster InRelease Ign:4 http://deb.debian.org/debian-security buster/updates InRelease Err:5 http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo buster Release 404 Not Found [IP: 2620:8d:8000:15:1ead:ed:c0:ffe 80] Err:6 http://deb.debian.org/debian buster-updates Release 404 Not Found [IP: 2a04:4e42:200::644 80] Err:7 http://deb.debian.org/debian buster Release 404 Not Found [IP: 2a04:4e42:200::644 80] Err:8 http://deb.debian.org/debian-security buster/updates Release 404 Not Found [IP: 2a04:4e42:200::644 80] Reading package lists... Done E: The repository 'http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo buster Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://deb.debian.org/debian buster-updates Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://deb.debian.org/debian buster Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://deb.debian.org/debian-security buster/updates Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. ...well that is too bad $ sudo apt install bison --fix-missing Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libbison-dev m4 Suggested packages: bison-doc m4-doc The following NEW packages will be installed: bison libbison-dev m4 0 upgraded, 3 newly installed, 0 to remove and 196 not upgraded. Need to get 1,574 kB of archives. After this operation, 3,182 kB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://deb.debian.org/debian buster/main amd64 m4 amd64 1.4.18-2 404 Not Found [IP: 2a04:4e42::644 80] Err:2 http://deb.debian.org/debian buster/main amd64 libbison-dev amd64 2:3.3.2.dfsg-1 404 Not Found [IP: 2a04:4e42::644 80] Err:3 http://deb.debian.org/debian buster/main amd64 bison amd64 2:3.3.2.dfsg-1 404 Not Found [IP: 2a04:4e42::644 80] Unable to correct missing packages. E: Failed to fetch http://deb.debian.org/debian/pool/main/m/m4/m4_1.4.18-2_amd64.deb 404 Not Found [IP: 2a04:4e42::644 80] E: Failed to fetch http://deb.debian.org/debian/pool/main/b/bison/libbison-dev_3.3.2.dfsg-1_amd64.deb 404 Not Found [IP: 2a04:4e42::644 80] E: Failed to fetch http://deb.debian.org/debian/pool/main/b/bison/bison_3.3.2.dfsg-1_amd64.deb 404 Not Found [IP: 2a04:4e42::644 80] E: Aborting install. $ sudo apt install byacc Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: byacc 0 upgraded, 1 newly installed, 0 to remove and 196 not upgraded. Need to get 82.2 kB of archives. After this operation, 164 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian buster/main amd64 byacc amd64 20140715-1+b1 [82.2 kB] Fetched 82.2 kB in 0s (400 kB/s) Selecting previously unselected package byacc. (Reading database ... 328847 files and directories currently installed.) Preparing to unpack .../byacc_20140715-1+b1_amd64.deb ... Unpacking byacc (20140715-1+b1) ... Setting up byacc (20140715-1+b1) ... update-alternatives: using /usr/bin/byacc to provide /usr/bin/yacc (yacc) in auto mode Processing triggers for man-db (2.8.5-2) ... ...well byacc appears to have worked. it's in there now. not sure what happened with bison - i think i had the same problem with it earlier. perhaps now i will be able to build Wine - for now though let me try and finish installing libaacs. ...still no: $ make YACC src/file/keydbcfg-parser.c byacc: e - line 1 of "/home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.9.0/src/file/keydbcfg-parser.y", syntax error %code requires { ^ make: *** [Makefile:935: src/file/keydbcfg-parser.c] Error 1 Berkeley Yacc (byacc) is generally conceded to be the best yacc variant available(from 2013): https://web.archive.org/web/20130327184430/http://foldoc.org/byacc i need to remove byacc and build bison from source. https://github.com/RJVB/macstrop/issues/41 libaacs should pull in Bison #41(2019) "libaacs has a syntax error when used with the macOS' /usr/bin/yacc. Installing bison @3.3.2 fixes this issue." https://bugs.gentoo.org/887071 media-libs/libaacs-0.11.1-r1 - emake failed(2022-23) "Only a problem if byacc is used via app-alternatives/yacc. Builds fine when bison is used as default... ...Reading the configure output, it says something like 'checking for bison... byacc', so I'm inclined to say that the libaacs developers don't use yacc/byacc..." ...downloading a 2019 version of bison source... http://ftp.gnu.org/gnu/bison/ $ cd .../bison-3.4/ $ ./configure ...checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH. GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended. GNU M4 1.4.15 uses a buggy replacement strstr on some systems. Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug. $ cd ../bison-3.3.2 $ ./configure ...checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH. GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended. GNU M4 1.4.15 uses a buggy replacement strstr on some systems. Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug. https://ftp.gnu.org/gnu/m4/ m4-1.4.18 $ ./configure $ make freadahead.c: In function 'freadahead': freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib." #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib." ^~~~~ make[3]: *** [Makefile:1910: freadahead.o] Error 1 make[3]: Leaving directory '/home/trygve/Documents/2025/blu-ray-stuff/m4-1.4.18/lib' make[2]: *** [Makefile:1674: all] Error 2 make[2]: Leaving directory '/home/trygve/Documents/2025/blu-ray-stuff/m4-1.4.18/lib' make[1]: *** [Makefile:1572: all-recursive] Error 1 make[1]: Leaving directory '/home/trygve/Documents/2025/blu-ray-stuff/m4-1.4.18' make: *** [Makefile:1528: all] Error 2 m4-1.4.16 $ ./configure $ make In file included from clean-temp.h:22, from clean-temp.c:23: ./stdio.h:477:1: error: 'gets' undeclared here (not in a function); did you mean 'fgets'? _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ^~~~~~~~~~~~~~~ make[3]: *** [Makefile:1399: clean-temp.o] Error 1 make[3]: Leaving directory '/home/trygve/Documents/2025/blu-ray-stuff/m4-1.4.16/lib' make[2]: *** [Makefile:1196: all] Error 2 make[2]: Leaving directory '/home/trygve/Documents/2025/blu-ray-stuff/m4-1.4.16/lib' make[1]: *** [Makefile:1131: all-recursive] Error 1 make[1]: Leaving directory '/home/trygve/Documents/2025/blu-ray-stuff/m4-1.4.16' make: *** [Makefile:1084: all] Error 2 m4-1.4.6 $ ./configure $ make seems to finished error free $ make check all success $ sudo make install seems good back to bison-3.4 $ ./configure $ make $ make check ...gcc: error: ./examples/c/lexcalc/scan.c: No such file or directory gcc: fatal error: no input files compilation terminated. make[3]: *** [Makefile:4106: examples/c/lexcalc/lexcalc-scan.o] Error 1 make[3]: Leaving directory '/home/trygve/Documents/2025/blu-ray-stuff/bison-3.4' make[2]: *** [Makefile:5988: check-am] Error 2 ...should i install it like this? it might not be necessary for libaacs. the failed test was related to LEX: https://en.wikipedia.org/wiki/Lex_(software) $ sudo make install seems to have done it libaacs-0.11.1 $ ./configure $ make ...:1: previous declaration /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/src/file/keydbcfg-parser.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother] updating src/file/keydbcfg-parser.h LEX src/file/keydbcfg-lexer.c /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/build-aux/missing: line 81: flex: command not found WARNING: 'flex' is missing on your system. You should only need it if you modified a '.l' file. You may want to install the Fast Lexical Analyzer package: make: *** [Makefile:1147: src/file/keydbcfg-lexer.c] Error 127 ...looks like i should install Flex flex-2.6.4/ $ ./configure $ make some warning... $ make check seg-fault error $ sudo make install seg-fault error i guess i won't have Flex then. i think i can still install libaacs and watch blu-rays so let's do it. final libaacs-0.11.1 $ already configured and made it looks like i cut off the top of the warning before. here they are again: YACC src/file/keydbcfg-parser.c /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/src/file/keydbcfg-parser.y:1.1-5: warning: POSIX Yacc does not support %code [-Wyacc] 1 | %code requires { | ^~~~~ /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/src/file/keydbcfg-parser.y:22.1-5: warning: POSIX Yacc does not support %code [-Wyacc] 22 | %code { | ^~~~~ /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/src/file/keydbcfg-parser.y:130.1-12: warning: POSIX Yacc does not support %pure-parser [-Wyacc] 130 | %pure-parser | ^~~~~~~~~~~~ /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/src/file/keydbcfg-parser.y:130.1-12: warning: deprecated directive, use ‘%define api.pure’ [-Wdeprecated] 130 | %pure-parser | ^~~~~~~~~~~~ /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/src/file/keydbcfg-parser.y:131.1-5: warning: POSIX Yacc does not support %yacc [-Wyacc] 131 | %yacc | ^~~~~ /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/src/file/keydbcfg-parser.y:131.1-5: warning: duplicate directive [-Wother] 131 | %yacc | ^~~~~ :1: previous declaration /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/src/file/keydbcfg-parser.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother] updating src/file/keydbcfg-parser.h LEX src/file/keydbcfg-lexer.c /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/build-aux/missing: line 81: flex: command not found WARNING: 'flex' is missing on your system. You should only need it if you modified a '.l' file. You may want to install the Fast Lexical Analyzer package: make: *** [Makefile:1147: src/file/keydbcfg-lexer.c] Error 127 ...it looks somewhat similar to what i was seeing before though now just a warning. let's give it a try and if it doesnt work, i can try re-installing byacc along side bison via apt. if still no then i suppose i will be kinda sad. here we go! $ make check LEX src/file/keydbcfg-lexer.c /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/build-aux/missing: line 81: flex: command not found WARNING: 'flex' is missing on your system. You should only need it if you modified a '.l' file. You may want to install the Fast Lexical Analyzer package: make: *** [Makefile:1147: src/file/keydbcfg-lexer.c] Error 127 $ sudo make install LEX src/file/keydbcfg-lexer.c /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/build-aux/missing: line 81: flex: command not found WARNING: 'flex' is missing on your system. You should only need it if you modified a '.l' file. You may want to install the Fast Lexical Analyzer package: make: *** [Makefile:1147: src/file/keydbcfg-lexer.c] Error 127 ...maybe i'm gettign sleepy. this is not working. getting sleepy here. i skimmed this article: https://tomassetti.me/why-you-should-not-use-flex-yacc-and-bison/ not sure if it helped me, but i get the sense i should just try and install all 3 lexers/parsers/compilers. so i sudo apt install byacc again, and it appears to all be in place. going back to libaacs-0.11.1 (final final) $ ./configure $ make now just: LEX src/file/keydbcfg-lexer.c /home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1/build-aux/missing: line 81: flex: command not found WARNING: 'flex' is missing on your system. You should only need it if you modified a '.l' file. You may want to install the Fast Lexical Analyzer package: make: *** [Makefile:1147: src/file/keydbcfg-lexer.c] Error 127 apparently flex is sort of crucial here(also installing byacc made a bunch of other warnings go away so that must be useful somehow) google AI is really want's me to just sudo apt install flex... actually let me try that - not sure it will work but what the hell, ...getting slow. i'd like to get this working. $ apt search --names-only flex Sorting... Done Full Text Search... Done cl-flexi-streams/stable,stable 20181214.git0fd872a-1 all Flexi-streams: Flexible bivalent streams for Common Lisp flex/stable 2.6.4-6.2 amd64 fast lexical analyzer generator flex-doc/stable,stable 2.6.4-6.2 all Documentation for flex (a fast lexical analyzer generator) flex-old/stable 2.5.4a-10 amd64 Old version of the fast lexical analyzer generator $ apt show flex Package: flex Version: 2.6.4-6.2 Priority: optional Section: devel Maintainer: Manoj Srivastava Installed-Size: 1,254 kB Pre-Depends: debconf | debconf-2.0 Depends: libc6 (>= 2.26), m4 Recommends: gcc | c-compiler, libfl-dev Suggests: bison, build-essential, flex-doc Homepage: https://github.com/westes/flex Tag: devel::code-generator, implemented-in::c, interface::commandline, role::program, scope::utility, works-with::software:source Download-Size: 456 kB APT-Sources: http://deb.debian.org/debian buster/main amd64 Packages Description: fast lexical analyzer generator Flex is a tool for generating scanners: programs which recognized lexical patterns in text. It reads the given input files for a description of a scanner to generate. The description is in the form of pairs of regular expressions and C code, called rules. Flex generates as output a C source file, lex.yy.c, which defines a routine yylex(). This file is compiled and linked with the -lfl library to produce an executable. When the executable is run, it analyzes its input for occurrences of the regular expressions. Whenever it finds one, it executes the corresponding C code. $ apt show flex-old Package: flex-old Version: 2.5.4a-10 Priority: optional Section: devel Maintainer: Tommi Vainikainen Installed-Size: 508 kB Depends: libc6 (>= 2.7), dpkg (>= 1.15.4) | install-info Recommends: gcc | c-compiler Suggests: bison Conflicts: flex Homepage: http://flex.sourceforge.net/ Tag: devel::code-generator, implemented-in::c, interface::commandline, role::program, scope::utility, works-with::software:source Download-Size: 200 kB APT-Sources: http://deb.debian.org/debian buster/main amd64 Packages Description: Old version of the fast lexical analyzer generator flex is a tool for generating scanners: programs which recognize lexical patterns in text. This is the old 2.5.4a version, which is no longer being developed. You should normally choose flex, unless you have legacy lexer files that do not work with a modern flex. . This product includes software developed by the University of California, Berkeley and its contributors. The upstream source code can be found at http://flex.sourceforge.net/ $ sudo apt install flex Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: m4 Suggested packages: bison flex-doc m4-doc Recommended packages: libfl-dev The following NEW packages will be installed: flex m4 0 upgraded, 2 newly installed, 0 to remove and 196 not upgraded. Need to get 659 kB of archives. After this operation, 1,616 kB of additional disk space will be used. Do you want to continue? [Y/n] Err:1 http://deb.debian.org/debian buster/main amd64 m4 amd64 1.4.18-2 404 Not Found [IP: 2a04:4e42:600::644 80] Err:2 http://deb.debian.org/debian buster/main amd64 flex amd64 2.6.4-6.2 404 Not Found [IP: 2a04:4e42:600::644 80] E: Failed to fetch http://deb.debian.org/debian/pool/main/m/m4/m4_1.4.18-2_amd64.deb 404 Not Found [IP: 2a04:4e42:600::644 80] E: Failed to fetch http://deb.debian.org/debian/pool/main/f/flex/flex_2.6.4-6.2_amd64.deb 404 Not Found [IP: 2a04:4e42:600::644 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? ...looks like nope $ sudo apt install flex-old Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: bison The following NEW packages will be installed: flex-old 0 upgraded, 1 newly installed, 0 to remove and 196 not upgraded. Need to get 200 kB of archives. After this operation, 508 kB of additional disk space will be used. Err:1 http://deb.debian.org/debian buster/main amd64 flex-old amd64 2.5.4a-10 404 Not Found [IP: 2a04:4e42:400::644 80] E: Failed to fetch http://deb.debian.org/debian/pool/main/f/flex-old/flex-old_2.5.4a-10_amd64.deb 404 Not Found [IP: 2a04:4e42:400::644 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? ...also nope! it looks like packagemanagers just suck. or maybe i just need to buy a new computer. ;D ...it looks like the last hope is here: https://github.com/westes/flex/releases "flex-2.5.39: This is the final release in the flex 2.5.X series. Generaly, this release is here for historical purposes only. You most likely want to use the most current release of flex" /flex-2.5.39/ ./configure make some warnings make check Tests succeeded: 45 Tests FAILED: 2 sudo make install seems good: $ man flex ...so it should work now then! back to libaacs-0.11.1/ ./configure make warnings make check no checks? sudo make install make install-am make[1]: Entering directory '/home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1' make[2]: Entering directory '/home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1' /usr/bin/mkdir -p '/usr/local/lib' /bin/bash ./libtool --mode=install /usr/bin/install -c libaacs.la '/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libaacs.so.0.7.2 /usr/local/lib/libaacs.so.0.7.2 libtool: install: (cd /usr/local/lib && { ln -s -f libaacs.so.0.7.2 libaacs.so.0 || { rm -f libaacs.so.0 && ln -s libaacs.so.0.7.2 libaacs.so.0; }; }) libtool: install: (cd /usr/local/lib && { ln -s -f libaacs.so.0.7.2 libaacs.so || { rm -f libaacs.so && ln -s libaacs.so.0.7.2 libaacs.so; }; }) libtool: install: /usr/bin/install -c .libs/libaacs.lai /usr/local/lib/libaacs.la libtool: install: /usr/bin/install -c .libs/libaacs.a /usr/local/lib/libaacs.a libtool: install: chmod 644 /usr/local/lib/libaacs.a libtool: install: ranlib /usr/local/lib/libaacs.a libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the 'LD_RUN_PATH' environment variable during linking - use the '-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /usr/bin/mkdir -p '/usr/local/bin' /bin/bash ./libtool --mode=install /usr/bin/install -c aacs_info '/usr/local/bin' libtool: install: /usr/bin/install -c .libs/aacs_info /usr/local/bin/aacs_info /usr/bin/mkdir -p '/usr/local/lib/pkgconfig' /usr/bin/install -c -m 644 src/libaacs.pc '/usr/local/lib/pkgconfig' /usr/bin/mkdir -p '/usr/local/include/libaacs' /usr/bin/install -c -m 644 src/libaacs/aacs.h src/file/filesystem.h src/libaacs/aacs-version.h '/usr/local/include/libaacs' make[2]: Leaving directory '/home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1' make[1]: Leaving directory '/home/trygve/Documents/2025/blu-ray-stuff/libaacs-0.11.1' ...looks like it worked! finally? test? """ Your input can't be opened: VLC is unable to open the MRL 'bluray:///dev/sr0'. Check the log for details. """ try again """ Blu-ray error: This Blu-ray Disc needs a library for AACS decoding, and your system does not have it. Your input can't be opened: VLC is unable to open the MRL 'bluray:///dev/sr1'. Check the log for details. """ ??? it should be working now! rebooted. still not working. is it possible /home/trygve/.config/aacs/keydb.cfg is not in the right place???? move to /home/.config/aacs/keydb.cfg oops, must be root: $ cd .. ...i should do a test, very sleepy. $ cp -r /home/trygve/.config/aacs/ /home/trygve/.config/deleteaacs/ ...there it is $ rm -r /home/trygve/.config/deleteaacs/ ...there it is not $ sudo cp -r /home/trygve/.config/aacs/ /home/.config/aacs/ cp: cannot create directory '/home/.config/aacs/': No such file or directory ...i feel like i just got away with something very dangerous [new terminal]$ echo ~ /home/trygve ...what am i doing!? it was right the first time! ...i guess it's just not going to work. ...at least i finished my deck today. i spent too much time on this this afternoon. from all appearances it looks like everything should be installed properly, but for whatever reason VLC still refuses to accept blu-ray disks. =( maybe i'm ready to pass out now. more garbage: https://www.regular-expressions.info/quickstart.html https://web.stanford.edu/class/archive/cs/cs143/cs143.1128/handouts/050%20Flex%20In%20A%20Nutshell.pdf https://stackoverflow.com/questions/623503/what-is-the-difference-between-flex-lex-and-yacc-bison https://www.gnu.org/software/bison/ https://pubs.opengroup.org/onlinepubs/9699919799/utilities/yacc.html https://arxiv.org/pdf/1010.5023.pdf