Do-release-upgrade: Why do I have "Foreign Packages Installed"?

I ran sudo do-release-upgrade -d to switch to the development release in a VM, hopefully to contribute to Ubuntu, and got the following message:

Foreign Packages Installed 

The following unofficial packages are currently installed: 

gir1.2-javascriptcoregtk-4.1Installed from: unknown origin 
gir1.2-webkit2-4.1.......Installed from: unknown origin 
libjavascriptcoregtk-4.1-0Installed from: unknown origin 
libjavascriptcoregtk-6.0-1Installed from: unknown origin 
libwebkit2gtk-4.1-0......Installed from: unknown origin 
libwebkitgtk-6.0-4.......Installed from: unknown origin 


It is recommended to install supported versions from the Ubuntu 
archive, and try the upgrade again. 

Do you want to continue the upgrade anyways? 

Continue [yN] 

Why do I have “Foreign Packages Installed”? And how can I “install supported versions from the Ubuntu archive”?

I don’t remember doing anything unusual.

System info:

ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: ubuntu-release-upgrader-core 1:25.04.18
ProcVersionSignature: Ubuntu 6.14.0-32.32-generic 6.14.11
Uname: Linux 6.14.0-32-generic aarch64
ApportVersion: 2.32.0-0ubuntu5.3
Architecture: arm64
CasperMD5CheckResult: pass
CrashDB: ubuntu
CrashReports: 644:0:109:0:2025-09-24 18:16:43.790265875 +0300:2025-09-24 18:16:43.786478375 +0300:/var/crash/kdump_lock
CurrentDesktop: ubuntu:GNOME
Date: Wed Sep 24 18:34:49 2025
InstallationDate: Installed on 2025-09-10 (14 days ago)
InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release arm64 (20250415.3)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: No upgrade log present (probably fresh install)

What does inxi -r show?

Post output here please.

$ inxi -r
Repos:
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/ubuntu.sources
    1: deb http://ports.ubuntu.com/ubuntu-ports/ plucky plucky-updates plucky-backports plucky-security plucky-proposed main restricted universe multiverse

I saw the same when running the graphical updater (update-manager -cd).

Same, just ran update-manager -d:

Screenshot 2025-09-24 at 7.15.19 PM

What does apt think ?

apt list --installed gir1.2-webkit2-4.1

and

apt policy gir1.2-webkit2-4.1

Perhaps reveal something …

$ apt list --installed gir1.2-webkit2-4.1
gir1.2-webkit2-4.1/plucky-updates,plucky-security,now 2.48.5-0ubuntu0.25.04.1 arm64 [installed,automatic]
Notice: There is 1 additional version. Please use the '-a' switch to see it
$ apt policy gir1.2-webkit2-4.1
gir1.2-webkit2-4.1:
  Installed: 2.48.5-0ubuntu0.25.04.1
  Candidate: 2.48.5-0ubuntu0.25.04.1
  Version table:
 *** 2.48.5-0ubuntu0.25.04.1 500
        500 http://ports.ubuntu.com/ubuntu-ports plucky-updates/main arm64 Packages
        500 http://ports.ubuntu.com/ubuntu-ports plucky-security/main arm64 Packages
        100 /var/lib/dpkg/status
     2.48.1-1ubuntu1 500
        500 http://ports.ubuntu.com/ubuntu-ports plucky/main arm64 Packages

That’s all fine, so likely a bug with the release upgrader, I’d open a bug with:

ubuntu-bug ubuntu-release-upgrader-core

(mention that this is arm64 and uses ports.ubuntu.com in your bug report, this might be relevant)

1 Like

Done: Bug #2125602 “do-release-upgrade: Foreign Packages Installed” : Bugs : ubuntu-release-upgrader package : Ubuntu

tldr: I was able to replicate in a fresh install of Ubuntu 25.04 ARM in UTM (VM software).

For now, I will use https://cdimage.ubuntu.com/daily-live/current/questing-desktop-arm64.iso.

3 Likes

I upgraded a short while ago from plucky on x64 and had the same notification.
The upgrade proceeded without a hitch.

System Details Report


Report details

  • Date generated: 2025-09-25 10:59:06

Hardware Information:

  • Hardware Model: Hewlett-Packard 23-d015ea
  • Memory: 16.0 GiB
  • Processor: Intel® Core™ i5-3475S Ă— 4
  • Graphics: Intel® HD Graphics 4000 (IVB GT2)
  • Disk Capacity: 1.3 TB

Software Information:

  • Firmware Version: 8.16
  • OS Name: Ubuntu Questing Quokka (development branch)
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 49
  • Windowing System: Wayland
  • Kernel Version: Linux 6.17.0-4-generic

A fix has been released. I confirmed it indeed got fixed. See Bug #2125602 “do-release-upgrade: Foreign Packages Installed” : Bugs : ubuntu-release-upgrader package : Ubuntu.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.