I added Ondřej Surý's repository which was a great help at the time. Now I have issues installing cURL and I think returning to "original" PHP would solve the problem.

Currently all my PHP packages are from DEB.SURY.ORG repository.

ii  php5                              5.5.12+dfsg-2+deb.sur all
ii  php5-cli                          5.5.12+dfsg-2+deb.sur amd64
ii  php5-common                       5.5.12+dfsg-2+deb.sur amd64
ii  php5-gd                           5.5.12+dfsg-2+deb.sur amd64
ii  php5-imagick                      3.1.2-1+debphp.org~pr amd64
ii  php5-json                         1.3.4-3+deb.sury.org~ amd64
rc  php5-mcrypt                       5.5.8+dfsg-3+sury.org amd64
ii  php5-mysql                        5.5.12+dfsg-2+deb.sur amd64

I have already removed the Ondřej's .list file.

How can I switch back to the original php packages causing minimal disruptions for my users?

  • 2
    Add back the PPA, the use ppa-purge.
    – muru
    Sep 29, 2014 at 8:43
  • @Oli Pretty sure someone has already said it, so I am searching for the original to flag as dupe. If not I'll post as answer.
    – muru
    Sep 29, 2014 at 8:51
  • @muru, this solved my problem and I am very grateful. Please post it as an answer so I can accept.
    – Miklos
    Sep 29, 2014 at 9:15
  • Having problems installing wine32 on Ubuntu 20.04 ? This repo may be your enemy : askubuntu.com/questions/1301883/…
    – jave.web
    Dec 23, 2020 at 8:37
  • In this case, you should have been able to install "php-curl" - if "php --version" returned the correct version that you wanted it for.
    – Orphans
    Nov 2, 2022 at 16:03

1 Answer 1


Downgrading packages is a very difficult problem. You should use ppa-purge for this. But ppa-purge requires that the PPA be still added, so you will have to add back the PPA, and then use it.

  • For Ubuntu, the common repo is ppa:ondrej/php to (re)add this: sudo add-apt-repository ppa:ondrej/php and then to purge this: sudo ppa-purge ppa:ondrej/php it's even listed on deb.sury.org as "Ubuntu PPA", don't ask me why isn't it called deb.sury.org ...........
    – jave.web
    Dec 23, 2020 at 8:36
  • Also you may encouter problem php7.3 will no longer be available, but php7.4 will :)
    – jave.web
    Dec 23, 2020 at 8:42
  • To purge the packages themselves afterwards refer to askubuntu.com/a/1302278/277898
    – jave.web
    Dec 23, 2020 at 9:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .