CRON-APT error


  • All fine, thanks!

  • I'm afraid it's not over yet :)

    Today I received the following e-mail:




    I looked up the content of /etc/apt/sources.list.d/openmediavault-os-security.list, seems ok to me:


    Code
    root@NAS:/etc/apt# cat sources.list.d/openmediavault-os-security.list
    
    deb http://security.debian.org/debian-security bullseye-security main contrib non-free
    deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free


    content of /etc/apt/apt.conf:


    Code
    root@NAS:/etc/apt# cat apt.conf
    APT::Default-Release "bullseye";



    Any idea what's wrong now?

  • Since you have that file with that repo, you can remove the repo:

    Code
    deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free

    from /etc/apt/sources.list

    They point to the same place so you're hitting twice the same repo.


    Then try the same command to see if it works without error:

    Code
    /usr/bin/apt-get --option quiet=1 --option APT::Get::List-Cleanup=false --option Dir::Etc::SourceList=/etc/apt/sources.list.d/openmediavault-os-security.list --option Dir::Etc::SourceParts="/dev/null" --option DPkg::Options::=--force-confold dist-upgrade --yes --option APT::Get::Show-Upgraded=true


    If it errors the same, change the repo to deb instead of security and launch again the command.

    I don't use that file (don't have automatic security install ON) so I only have the security repo on the sources.list


    P.S.

    And if you don't do compiling, you can comment ALL deb src on all those repo list

  • I did the following...


    # in front of debian-security (redundant, as I understood):


    changed "security" to "deb" (since "security" lead to the same error when executing the command below):

    Code
    root@NAS:/etc/apt# cat sources.list.d/openmediavault-os-security.list
    deb http://deb.debian.org/debian-security bullseye-security main contrib non-free
    deb-src http://deb.debian.org/debian-security bullseye-security main contrib non-free


    But, launching the command again, still gives me the same error:

    Code
    root@NAS:/etc/apt# /usr/bin/apt-get --option quiet=1 --option APT::Get::List-Cleanup=false --option Dir::Etc::SourceList=/etc/apt/sources.list.d/openmediavault-os-security.list --option Dir::Etc::SourceParts="/dev/null" --option DPkg::Options::=--force-confold dist-upgrade --yes --option APT::Get::Show-Upgraded=true
    Reading package lists...
    E: The value 'bullseye' is invalid for APT::Default-Release as such a release is not available in the sources
  • E: The value 'bullseye' is invalid for APT::Default-Release as such a release is not available in the sources

    I saw a command from macom about setting the OS release although I don't know if it's related:

    RE: reinstall of 5.6.26 is failing in the post-installation

    This probably is a simple thing but I'm out of ideas (and commands)

    Wait for a better input by ryecoaaron (sorry to poke you)

    • Offizieller Beitrag

    Just because I don't want to read the last 25 posts...


    echo "deb http://deb.debian.org/debian/ bullseye main contrib non-free" | sudo tee /etc/apt/sources.list

    echo "deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free" | sudo tee -a /etc/apt/sources.list

    sudo rm -v /etc/apt/sources.list.d/{omvextras,openmediavault,openmediavault-os-security}.list

    sudo omv-salt deploy run apt omvextras

    sudo omv-aptclean

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    But that will delete the debian-security repo, right? Does that mean I won't get any security updates anymore?

    Can you please just trust the commands. Save the current list files somewhere else if you don't trust what i am telling you. The omv-salt command right after the delete recreates the repo files correctly without having to worry about what is in the current files.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I completed all the above commands successfully.


    However..

    Code
    root@NAS:~# /usr/bin/apt-get --option quiet=1 --option APT::Get::List-Cleanup=false --option Dir::Etc::SourceList=/etc/apt/sources.list.d/openmediavault-os-security.list --option Dir::Etc::SourceParts="/dev/null" --option DPkg::Options::=--force-confold dist-upgrade --yes --option APT::Get::Show-Upgraded=true
    Reading package lists...
    E: The value 'bullseye' is invalid for APT::Default-Release as such a release is not available in the sources

    remains.

    • Offizieller Beitrag

    I completed all the above commands successfully.

    Output is important here.


    remains.

    Wasn't ready to run that command yet and not sure why you are running it with those arguments. I give you a few commands at a time because I can't see your system.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Output is important here.

    Here it comes:

    Code
    root@NAS:~# echo "deb http://deb.debian.org/debian/ bullseye main contrib non-free" | sudo tee /etc/apt/sources.list
    deb http://deb.debian.org/debian/ bullseye main contrib non-free
    root@NAS:~# echo "deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free" | sudo tee -a /etc/apt/sources.list
    deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
    root@NAS:~# sudo rm -v /etc/apt/sources.list.d/{omvextras,openmediavault,openmediavault-os-security}.list
    removed '/etc/apt/sources.list.d/omvextras.list'
    removed '/etc/apt/sources.list.d/openmediavault.list'
    removed '/etc/apt/sources.list.d/openmediavault-os-security.list'
    • Offizieller Beitrag

    You can also put that output in a file if you don't want to do multiple posts.


    What is the output of:


    sudo apt-get --allow-releaseinfo-change update

    lsb_release -a

    sudo apt-get dist-upgrade

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Everything looks fine now. Are you still having a problem?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Well, I received this email in the morning from my system:



    That's why I tried the command earlier, to see if the problem still exists.

    And, unfortunately, it still does :(

    • Offizieller Beitrag

    Well, that doesn't make sense. The system is fully upgraded. What is the output of:


    cat /etc/cron-apt/config

    sudo grep -r security /etc/apt/*

    sudo omv-salt deploy run cronapt

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!