apt repository broken when having only jammy and jammy-security apt-repos enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Won't Fix
|
Undecided
|
Ubuntu Security Team |
Bug Description
Having installed Ubuntu 22 server from server-live-cd https:/
(md5sum e8d2a77c51b599c
without network connection to internet (so no connection to ubuntu apt repositories). After offline installation completed, we remove the "jammy-updates" from the /etc/apt/
# cat /etc/apt/
deb http://
deb http://
Now we give the host network access and do "apt update" to refresh the apt repository.
We assume that the installed package libldap-2.5-0 version 2.5.12+
was installed from the ubuntu installer cd which is a version from jammy-updates.
Now we are unable to install package "ldap-utils" because that depends on package libldap-2.5-0 version 2.5.11+
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
# apt-cache policy libldap-2.5-0
libldap-2.5-0:
Installed: 2.5.12+
Candidate: 2.5.12+
Version table:
*** 2.5.12+
100 /var/lib/
2.
500 http://
2.
500 http://
# apt install --simulate ldap-utils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ldap-utils : Depends: libldap-2.5-0 (= 2.5.11+
E: Unable to correct problems, you have held broken packages.
--
The problem is solved when adding line
deb http://
to /etc/apt/
But we want _only_ security updates, to keep the updates minimal.
Other workaround is "apt remove libldap-2.5-0", then when installing ldap-utils that fetches the older libldap-2.5-0 version 2.5.11+
Questions:
- Can you confirm that the package version from the server-live-cd see above is the version from the jammy-updates repository?
- Do you agree that when the above question is answered yes, having jammy-updates apt-repository is mandatory?
- if jammy-updates repo should be mandatory should this be documented?
description: | updated |
description: | updated |
tags: | added: server-triage-discuss |
affects: | openldap (Ubuntu) → ubuntu |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/2008465/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]