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)

    • Official Post

    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 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.4 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    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!

    • Official Post

    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 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.4 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    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.

    • Official Post

    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 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.4 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    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'
    • Official Post

    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 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.4 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    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!

    • Official Post

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

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.4 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    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 :(

    • Official Post

    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 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.4 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    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!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!