Is 'apt update' really needed after 'add-apt-repository'?

Asked by Nathan Teodosio

In any PPA page, one reads:

--->
You can update your system with unsupported packages from this untrusted PPA by adding ppa:ua-client/staging to your system's Software Sources. (Read about installing)

sudo add-apt-repository ppa:ua-client/staging
sudo apt update
<---

Is the 'apt update' really necessary? add-apt-repository seem to do that alone, and the manual page even has

--->
  ‐n, ‐‐no‐update
              After adding the repository, do not update the package cache.
<---

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

The step to automatically execute "apt-get update" after adding a PPA (unless specifically denied with the --no-update option) was introduced in software-properties version 0.96.24.20 for bionic in February 2018.

For the older releases trusty and xenial (in ESM status) the advice for a manual update may still be relevant.

Revision history for this message
Nathan Teodosio (nteodosio) said :
#2

Thanks Manfred Hampl, that solved my question.