• Error during apt upgrade that immediately disappears

    From Cecil Westerhof@Cecil@decebal.nl to alt.os.linux.debian on Sat Sep 2 15:44:47 2023
    From Newsgroup: alt.os.linux.debian

    During an 'apt upgrade' I get the following error:
    libdvd-pkg: Checking orig.tar integrity...
    /usr/src/libdvd-pkg/libdvdcss_1.4.3.orig.tar.bz2: OK
    libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...

    But it immediately disappears because when I do 'apt-get check' I get:
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done


    When I do another 'apt upgrade' I get:
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Calculating upgrade... Done
    The following packages have been kept back:
    firefox-esr
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

    The one not upgraded is not a problem, because I have set firefox on
    hold because if firefox is upgraded while it is running nowadays
    firefox hangs. So I manually upgrade firefox when it is not running.

    I have run 'apt upgrade' tens of times without firefox being upgraded
    and have never had this error before.


    What could be happening here?
    Is it something to be worried about?
    --
    Cecil Westerhof
    Senior Software Engineer
    LinkedIn: http://www.linkedin.com/in/cecilwesterhof
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Richard Kettlewell@invalid@invalid.invalid to alt.os.linux.debian on Sat Sep 2 15:59:09 2023
    From Newsgroup: alt.os.linux.debian

    Cecil Westerhof <Cecil@decebal.nl> writes:
    During an 'apt upgrade' I get the following error:
    libdvd-pkg: Checking orig.tar integrity...
    /usr/src/libdvd-pkg/libdvdcss_1.4.3.orig.tar.bz2: OK
    libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...

    libdvd-pkgrCOs postinst script is broken.

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994081

    What could be happening here?
    Is it something to be worried about?

    It wonrCOt have (re-)built libdvdcss2.
    usr/share/doc/libdvd-pkg/README.Debian has a suggestion for doing it
    manually, if you care about that.
    --
    https://www.greenend.org.uk/rjk/
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Cecil Westerhof@Cecil@decebal.nl to alt.os.linux.debian on Sat Sep 2 18:00:22 2023
    From Newsgroup: alt.os.linux.debian

    Richard Kettlewell <invalid@invalid.invalid> writes:

    Cecil Westerhof <Cecil@decebal.nl> writes:
    During an 'apt upgrade' I get the following error:
    libdvd-pkg: Checking orig.tar integrity...
    /usr/src/libdvd-pkg/libdvdcss_1.4.3.orig.tar.bz2: OK
    libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...

    libdvd-pkgrCOs postinst script is broken.

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994081

    What could be happening here?
    Is it something to be worried about?

    It wonrCOt have (re-)built libdvdcss2.
    usr/share/doc/libdvd-pkg/README.Debian has a suggestion for doing it manually, if you care about that.

    Thank you very much. I accept it for now I think.
    --
    Cecil Westerhof
    Senior Software Engineer
    LinkedIn: http://www.linkedin.com/in/cecilwesterhof
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Cecil Westerhof@Cecil@decebal.nl to alt.os.linux.debian on Wed Sep 6 14:13:44 2023
    From Newsgroup: alt.os.linux.debian

    Richard Kettlewell <invalid@invalid.invalid> writes:

    Cecil Westerhof <Cecil@decebal.nl> writes:
    During an 'apt upgrade' I get the following error:
    libdvd-pkg: Checking orig.tar integrity...
    /usr/src/libdvd-pkg/libdvdcss_1.4.3.orig.tar.bz2: OK
    libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...

    libdvd-pkgrCOs postinst script is broken.

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994081

    What could be happening here?
    Is it something to be worried about?

    It wonrCOt have (re-)built libdvdcss2.
    usr/share/doc/libdvd-pkg/README.Debian has a suggestion for doing it manually, if you care about that.

    I added the --dry-run by 'apt-get check'. With 'apt upgrade' I did not
    have this error any-more. If --dry-run does not have its own
    (invisible) bug it would be very nice if --dry-run is implemented.


    I posted the following on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994081:
    In /usr/lib/libdvd-pkg/b-i_libdvdcss.sh at line 46, I changed:
    apt-get check >/dev/null 2>&1
    if [ "$?" -ne 0 ]; then
    echo "${PKGI}: \`apt-get check\` failed, you may have broken packages. Aborting..."
    exit 0
    fi

    into:
    # @@@@ dry-run toegevoegd en /dev/null redirection verwijderd
    echo 'BEFORE 'apt-get check' problem'
    apt-get check --dry-run # >/dev/null 2>&1
    if [ "$?" -ne 0 ]; then
    echo "${PKGI}: \`apt-get check\` failed, you may have broken packages. Aborting..."
    exit 0
    fi
    echo 'AFTER 'apt-get check' problem'

    I had an upgrade that could be done and this resulted in:
    BEFORE apt-get check problem
    Reading package lists...
    Building dependency tree...
    Reading state information...
    AFTER apt-get check problem

    So by adding --dry-run we do not get the error anymore.
    So if there is no reason that --dry-run would be wrong, I think it is a good idea to add it: then this two year old problem would finally be solved.
    --
    Cecil Westerhof
    Senior Software Engineer
    LinkedIn: http://www.linkedin.com/in/cecilwesterhof
    --- Synchronet 3.21d-Linux NewsLink 1.2