Ubuntu Version :
Unbuntu 24.04.2 LTS
Desktop Environment (if applicable):
GNOME 46
Hi,
I cannot open the software update via the GUI or run sudo apt-get update i get the following error when running the this command:
E: Conflicting values set for option Signed-By regarding source https://ppa.launchpadcontent.net/ondrej/php/ubuntu/ noble: -----BEGIN PGP PUBLIC KEY BLOCK-----
mI0ESX35nAEEALKDCUDVXvmW9n+T/+3G1DnTpoWh9/1xNaz/RrUH6fQKhHr568F8
hfnZP/2CGYVYkW9hxP9LVW9IDvzcmnhgIwK+ddeaPZqh3T/FM4OTA7Q78HSvR81m
Jpf2iMLm/Zvh89ZsmP2sIgZuARiaHo8lxoTSLtmKXsM3FsJVlusyewHfABEBAAGw
DAAAZ3BnAQAAAAAAALQfTGF1bmNocGFkIFBQQSBmb3IgT25kxZllaiBTdXLDvbAM
AABncGcCAAAAAAAAiLYEEwECACAFAkl9+ZwCGwMGCwkIBwMCBBUCCAMEFgIDAQIe
AQIXgAAKCRBPTqCq5SZ6bEI2A/41tTZSBQJU+hLxdsX1W5IREYovTGqY2lLErKOF
ywhJmXRBl+eBkNNbL1564r8J3f5JoSr8sQqojSw2P3TmivDCv/2wyOpqnSphvF2z
9r7HbMYYnzQvhh/zsGgz759U8mAeud5MMq7ghhYxJwq3mU3EVLtqAUMqJTkQ5fgZ
heA4y7AGAANncGcAiQEzBBABCgAdFiEECvaBvTqO/UqmWMI/thEcm0xImQEFAmXT
V0AACgkQthEcm0xImQGTTggAhuMHGeBZlRUAsZE7jJM7Mf06/WIhcgUfBfSFnJFl
FH+xdEe/GFYyVk9kingDsPh90Ecnt4n8DJHTlsuUV1+SPBIOJfbQTUjx1n/+Ck+T
VKzRByvrpRXtiZQ214m3zbhZpme2eBBMItZByjG7g925NUIqrL+R5ZoEcZvVlYsc
fsA0Sr8yJTsGJPefuLYI6eJkNDa1QkzBkSSW4XaCfNIxNBRszN/qGe3xy0bibOaC
4T2TcbZPSAVP855ahNbLAdqkyfAutiEWcKZmQpR9qNh4482k0pXVlQJ8U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zH5dE6RKAGr
C2vsHWVfPhQn6UndfzwXc0mTLGQni25aQaZ6k60Dbm/vblejrTQrtAUWoMO3Z1cr
NDGJ3Z9DCxtr2o9gRYUI6HwLHJtobTIeI5xsr5x+GvXiIAVCPa3ZEuRL6jMQfqfS
C43mpuiS1kGgsnQLs2DbN7EFCfiJoNX1QzZu25zg+IS9PXbCJnheZWnH0rwUSb/N
hZPcSefGlNlhr824OfT30v79hQnw59XbsfV270O9jPbD4kttN+OiszbU66zsuiOh
BO46XCckQPqDkBMw56GPFuVrQgGb1thXvn67URJgPyJhwauBWKPNAJ9Ojuo+yVq/
hdR1VNWThXQbZgaGSWrbjt6FdYtQb9VX88uu5gFDmr180HogHNUDUcqNLLdnjfFs
4DyJlusQ5I/a7cQ7nlkNgxAmHszwO/mGLBuGljDUYkwZDW9nqP1Q5Q2jMtrhgXvR
2SOtufvecUbB7+eoRSaOnu7CNMATG6LocFEMzhKUde1uZTfWSqnYEcdqoFJMi46y
qaNxhiNLsQ5OBMbgSp2zCbQxRBdITMVvBR5YjCetUIGEs6T1yQ5wh5Xpoi34ShHn
v38=
=kFlZ
-----END PGP PUBLIC KEY BLOCK-----
E: The list of sources could not be read.
How do I resolve this so I can access the gui and keep my version updated.
Welcome to Ubuntu Discourse
I edited your post to add code tags. Reading large chunks of text or output makes it harder to analyze.
To add code tags, highlight the text and press Ctrl+E on the keyboard.
To the issue at handâŚwhen did this problem start?
Open a terminal and run these commands, separately, and show us the output with code tags:
inxi -r
If inxi
is not installed then sudo apt install inxi
Also, while apt-get
can still be used, nowadays it is more common to use apt update
sudo apt update
What errors do you get if you run this:
sudo apt full-upgrade
Hi Rubi1200
My issue is I cannot run sudo apt update as I get the error this happened today i cannot run the software from the GUI either
Try this command please:
grep -r ondrej /etc/apt/sources.list /etc/apt/sources.list.d/
Copy the output here for review.
webserver@webserver-01:~$ grep -r ondrej /etc/apt/sources.list /etc/apt/sources.list.d/
grep: /etc/apt/sources.list.d/.docker.list.swp: Permission denied
/etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.sources:URIs: https://ppa.launchpadcontent.net/ondrej/php/ubuntu/
/etc/apt/sources.list.d/ondrej-ubuntu-php-noble.sources:URIs: https://ppa.launchpadcontent.net/ondrej/php/ubuntu/
/etc/apt/sources.list.d/ondrej-ubuntu-php-noble.sources.save:URIs: https://ppa.launchpadcontent.net/ondrej/php/ubuntu/
/etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.list.distUpgrade:# deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu/ noble main # disabled on upgrade to noble
/etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.list.distUpgrade:# deb-src https://ppa.launchpadcontent.net/ondrej/php/ubuntu/ jammy main
/etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.sources.save:URIs: https://ppa.launchpadcontent.net/ondrej/php/ubuntu/
Good, now we are getting somewhere
You have multiple versions of the PPA in your sources lists.
Do you want to keep this PPA going forward?
Sorry Rubi1200 I believe I only used it to upgrade PHP sometime ago.
If there is a default setting that can added thats fine?
Well, the issue is that you are getting those errors because there are multiple versions of the same thing.
If you need PHP on your system, the best way forward is to clean this up.
Would you like the commands to do that so there is one âcleanâ source?
Yes please Rubi1200, send me over the commands and I will get them run.
First, letâs make a backup copy of the files (always recommended).
sudo cp -r /etc/apt/sources.list.d /etc/apt/sources.list.d.bak
If no errors, then this to remove old and conflicting files:
sudo rm /etc/apt/sources.list.d/ondrej-ubuntu-php-jammy* /etc/apt/sources.list.d/ondrej-ubuntu-php-noble.sources.save
Add the correct PPA again:
sudo add-apt-repository ppa:ondrej/php
Finally,
sudo apt update
All good now?
1 Like
Hi Rubi1200,
Running the PPA command i get the following:
webserver@webserver-01:~$ sudo add-apt-repository ppa:ondrej/php
PPA publishes dbgsym, you may need to include âmain/debugâ component
Repository: 'Types: deb
URIs: Index of /ondrej/php/ubuntu
Suites: noble
Components: main
â
Description:
Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Packages are provided for Current Ubuntu LTS releases (https://wiki.ubuntu.com/Releases ). Expanded Security Maintenance releases ARE NOT supported.
Debian stable, oldstable and Debian LTS packages are provided from a separate repository: https://deb.sury.org/#debian-dpa
You can get more information about the packages at https://deb.sury.org
BUGS&FEATURES: This PPA has a issue tracker:
https://deb.sury.org/#bug-reporting
Issues reported in a private email donât scale and most likely will be ignored. I simply donât have capacity to answer questions privately.
CAVEATS:
If you are using apache2, you are advised to add ppa:ondrej/apache2
If you are using nginx, you are advised to add ppa:ondrej/nginx
DONATION: If you like my work and you want to show appreciation, please consider donating regularly: https://donate.sury.org/
COMMERCIAL SUPPORT: Support for PHP packages for older Debian and Ubuntu release can be bought from https://www.freexian.com/lts/php/
WARNING: add-apt-repository is broken with non-UTF-8 locales, see
Unable to add PPA Key ¡ Issue #56 ¡ oerdnj/deb.sury.org ¡ GitHub for workaround:
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: PPA for PHP : OndĹej SurĂ˝
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/ondrej-ubuntu-php-noble.sources
E: Malformed entry 1 in sources file /etc/apt/sources.list.d/third-party.sources (URI parse)
E: The list of sources could not be read.
Can you show us the output from here:
cat /etc/apt/sources.list.d/third-party.sources
Types: deb
URIs: cdrom:[Ubuntu 22.04.3 LTS Jammy Jellyfish - Release amd64 (20230807.2)]/
Suites: jammy
Components: main restricted
sudo mv /etc/apt/sources.list.d/third-party.sources ~/third-party.sources.backup
sudo add-apt-repository ppa:ondrej/php
sudo apt update
Fingers crossed!
1 Like
rubi1200:
inxi
Thanks Rubi1200 I know am able to access the software updater via the GUI and all seems to be working correctly know.
1 Like
system
Closed
May 31, 2025, 6:25am
16
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.