Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security repo needs to be modified for bullseye not buster? #10

Open
chrissamuel opened this issue Jul 1, 2023 · 1 comment
Open

Security repo needs to be modified for bullseye not buster? #10

chrissamuel opened this issue Jul 1, 2023 · 1 comment

Comments

@chrissamuel
Copy link

Hi there again,

Also whilst checking over the code (whilst doing a manual dist-upgrade to bullseye I noticed that this attempts to deal with the move of the security repo for bullseye - but appears to do this when the new version is buster rather than bullseye which is when I had to make this change (buster was fine with the old line) - am I reading this right?

if ! grep -qai "^ *deb.* ${new_distro}[ /-]" /etc/apt/sources.list; then
  echo "deb http://http.us.debian.org/debian/ ${new_distro} main non-free contrib" >> /etc/apt/sources.list

  #Err:3 http://security.debian.org bullseye/updates Release
  #404  Not Found [IP: 199.232.10.132 80]
  if is_distro_name_newer "${new_distro}" "buster"; then
    echo "deb http://security.debian.org/debian-security ${new_distro}-security main" >> /etc/apt/sources.list
  else
    echo "deb http://security.debian.org/ ${new_distro}/updates main" >> /etc/apt/sources.list
  fi
  echo "$old_distro:$new_distro: apt sources now has $(cat /etc/apt/sources.list | egrep -v '^$|^#')" | awk '{print "dss:sources:dist_upgrade_x_to_y:" $0}'
fi

If so I'm guessing:

  if is_distro_name_newer "${new_distro}" "buster"; then

should be:

  if is_distro_name_newer "${new_distro}" "bullseye"; then

?

All the best,
Chris

@pbkwee
Copy link
Owner

pbkwee commented Jul 1, 2023

Note to self:
https://www.debian.org/releases/stable/errata
check different formats used for recent distros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants