Score:0

Error : FileNotFoundError while "do-release-upgrade" No such file or directory: '/tmp/ubuntu-release-upgrader-frfzvq3x/Ubuntu.info'

lv flag

I am trying to upgrade from Ubuntu 20.04.5 LTS to Ubuntu 22.04.1 LTS but while do-release-upgrade I am getting the error like

**FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ubuntu-release-upgrader-frfzvq3x/Ubuntu.info'**

**
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]                                                                    
Get:2 Upgrade tool [1,267 kB]                                                                           
Fetched 1,267 kB in 0s (0 B/s)                                                                          
authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg' 
extracting 'jammy.tar.gz'

Reading cache

**Checking package manager
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Hit **http://archive.ubuntu.com/ubuntu** focal InRelease                                                    
Get:1 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                                 
Get:2 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                
Get:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]                               
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [275 kB]                
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [408 kB]            
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [940 B]           
Get:7 http://archive.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [59.9 kB]                                  
Fetched 1,213 kB in 0s (0 B/s)                                                                          
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
None

Checking for installed snaps

Calculating snap size requirements

Updating repository information

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-frfzvq3x/jammy", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-frfzvq3x/DistUpgrade/DistUpgradeMain.py", line 241, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-frfzvq3x/DistUpgrade/DistUpgradeController.py", line 2042, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-frfzvq3x/DistUpgrade/DistUpgradeController.py", line 1880, in fullUpgrade
    if not self.updateSourcesList():
  File "/tmp/ubuntu-release-upgrader-frfzvq3x/DistUpgrade/DistUpgradeController.py", line 783, in updateSourcesList
    self.sources = SourcesList(matcherPath=self.datadir)
  File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 273, in __init__
    self.matcher = SourceEntryMatcher(matcherPath)
  File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 470, in __init__
    dist = DistInfo(base_dir=matcherPath)
  File "/usr/lib/python3/dist-packages/aptsources/distinfo.py", line 184, in __init__
    with open(dist_fname) as dist_file:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ubuntu-release-upgrader-frfzvq3x/Ubuntu.info'**

Here is the all the output of the do-release-upgrade.

br flag
Did you solve this?
Score:0
gg flag

This process works (tl;dr run sudo do-release-upgrade, pause/background the process after it starts with C-z, touch Ubuntu.info into the temp folder created by the do-release-upgrade command, and then continue by running fg (foreground)) ubuntu - Can't update to 20.10 - Unix & Linux Stack Exchange

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.