Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4552

do-release-upgrade with a local apt repo

$
0
0

Edit

I tried with this command on Ansible:

- name: Run do-release-upgrade  ansible.builtin.command: /usr/bin/do-release-upgrade -f DistUpgradeViewNonInteractive

It simply just quits when I do that.

I tested it out via SSH without the frontend:

This session appears to be running under ssh. It is not recommendedto perform a upgrade over ssh currently because in case of failure itis harder to recover.If you continue, an additional ssh daemon will be started at port'1022'.Do you want to continue?Continue [yN] yStarting additional sshdTo make recovery in case of failure easier, an additional sshd willbe started on port '1022'. If anything goes wrong with the runningssh, you can still connect to the additional one.If you run a firewall, you may need to temporarily open this port. Asthis is potentially dangerous it's not done automatically. You canopen the port with e.g.:'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT'To continue please press [ENTER]Reading package lists... DoneBuilding dependency treeReading state information... DoneHit http://<mirrored local repo>/ubuntu focal InReleaseHit http://<mirrored local repo>/ubuntu focal-updates InReleaseHit http://<mirrored local repo>/ubuntu focal-security InReleaseHit http://<mirrored local repo>/DeAdBCiUYInHcSTy/pcoip-client/deb/ubuntu focal InReleaseHit http://<mirrored local repo>/pitchblack stable InReleaseHit http://<mirrored local repo>/linux/chrome/deb stable InReleaseFetched 0 B in 0s (0 B/s)Reading package lists... DoneBuilding dependency treeReading state information... DonenoneNoneUpdating repository informationNo valid mirror foundWhile scanning your repository information no mirror entry for theupgrade was found. This can happen if you run an internal mirror orif the mirror information is out of date.Do you want to rewrite your 'sources.list' file anyway? If you choose'Yes' here it will update all 'focal' to 'jammy' entries.If you select 'No' the upgrade will cancel.

I suspect they're stopping at the SSH question or the mirror question.


Original question

I have Ubuntu 20.04 systems at my workplace, and I want to do an do-relelase-upgrade but it will only use my local apt repo. I'm currently debating on upgrading 22.04 or jumping straight to 24.04.

How would I make sure that it won't use the official Ubuntu repo and only local apt mirror, including custom repos?

My current plan is to do an Ansible task that will run do-release-upgrade, but I'm looking for a way to make sure it doesn't use the official repos. I did debate on just changing all instances of "focal" and change it to "jammy" or "noble", but I have some reservations on that as I'm jumping from one LTS to another.


Viewing all articles
Browse latest Browse all 4552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>