Error while Reloading SPM – frequently appears.

Asked by Navin Talati

Sir,

While reloading the “Synaptic Package Manager” in Ubuntu 18.04 LTS, the undermentioned error appears very frequently regarding failure of fetching the required packages to update.

---------- E R R O R --------------------------

Could not download all repository indexes

The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.

Failed to fetch http://p/dists/pa.launchpad.net/linuxuprising/apps/ubuntu/InRelease Could not resolve 'p'Some index files failed to download. They have been ignored, or old ones used instead.

--------------------------------------------------

There is no problem in network connection / internet connectivity.
Why this happens?
What are the commands to resolve them?

Please guide.

Navin Talati / 14-05-2019

Question information

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

I assume that you have created a nonsense entry in your /etc/apt/sources.list configuration file.

Please provide the output that you receive for the commands

uname -a
lsb_release -crid
find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

Revision history for this message
Navin Talati (n-m-talati) said :
#2

The output of above THREE commands is as under:

---------------------- O U T P U T ------------------------------------
navin@linux:~$ uname -a
Linux linux 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
navin@linux:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
navin@linux:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
     2 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
     3 # deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
     4 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     5 # newer versions of the distribution.
     6 deb http://archive.ubuntu.com/ubuntu bionic main universe restricted
     7 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic main restricted
     8
     9 ## Major bug fix updates produced after the final release of the
    10 ## distribution.
    11 deb http://archive.ubuntu.com/ubuntu bionic-updates main universe restricted
    12 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    13
    14 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    15 ## team, and may not be under a free licence. Please satisfy yourself as to
    16 ## your rights to use the software. Also, please note that software in
    17 ## universe WILL NOT receive any review or updates from the Ubuntu security
    18 ## team.
    19 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic universe
    20 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates universe
    21
    22 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    23 ## team, and may not be under a free licence. Please satisfy yourself as to
    24 ## your rights to use the software. Also, please note that software in
    25 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    26 ## security team.
    27 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic multiverse
    28 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    29
    30 ## N.B. software from this repository may not have been tested as
    31 ## extensively as that contained in the main release, although it includes
    32 ## newer versions of some applications which may provide useful features.
    33 ## Also, please note that software in backports WILL NOT receive any review
    34 ## or updates from the Ubuntu security team.
    35 deb http://archive.ubuntu.com/ubuntu bionic-backports main universe restricted
    36 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    37
    38 ## Uncomment the following two lines to add software from Canonical's
    39 ## 'partner' repository.
    40 ## This software is not part of Ubuntu, but is offered by Canonical and the
    41 ## respective vendors as a service to Ubuntu users.
    42 deb http://archive.canonical.com/ubuntu bionic partner
    43 deb-src http://archive.canonical.com/ubuntu bionic partner
    44
    45 deb http://archive.ubuntu.com/ubuntu bionic-security main universe restricted
    46 # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
    47 # deb-src http://security.ubuntu.com/ubuntu bionic-security universe
    48 # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
    49 # deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main # disabled on upgrade to bionic
    50
    51 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    52 # newer versions of the distribution.
    53 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic main restricted
    54
    55 ## Major bug fix updates produced after the final release of the
    56 ## distribution.
    57 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    58
    59 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    60 ## team. Also, please note that software in universe WILL NOT receive any
    61 ## review or updates from the Ubuntu security team.
    62 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic universe
    63 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates universe
    64
    65 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    66 ## team, and may not be under a free licence. Please satisfy yourself as to
    67 ## your rights to use the software. Also, please note that software in
    68 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    69 ## security team.
    70 deb http://archive.ubuntu.com/ubuntu bionic multiverse
    71 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic multiverse
    72 deb http://archive.ubuntu.com/ubuntu bionic-updates multiverse
    73 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    74
    75 ## N.B. software from this repository may not have been tested as
    76 ## extensively as that contained in the main release, although it includes
    77 ## newer versions of some applications which may provide useful features.
    78 ## Also, please note that software in backports WILL NOT receive any review
    79 ## or updates from the Ubuntu security team.
    80 deb http://archive.ubuntu.com/ubuntu bionic-backports multiverse
    81 # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    82
    83 ## Uncomment the following two lines to add software from Canonical's
    84 ## 'partner' repository.
    85 ## This software is not part of Ubuntu, but is offered by Canonical and the
    86 ## respective vendors as a service to Ubuntu users.
    87 # deb http://archive.canonical.com/ubuntu bionic partner
    88 # deb-src http://archive.canonical.com/ubuntu bionic partner
    89
    90 # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
    91 # deb-src http://security.ubuntu.com/ubuntu bionic-security universe
    92 deb http://archive.ubuntu.com/ubuntu bionic-security multiverse
    93 # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
    94
    95 # deb https://shop.softmaker.com/repo/apt bionic main
    96 # deb-src https://shop.softmaker.com/repo/apt bionic main
    97 deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
    98 # deb-src http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
    99 deb http://p pa.launchpad.net/linuxuprising/apps/ubuntu bionic main deb-src http://ppa.launchpad.net/linuxuprising/apps/ubuntu bionic main
   100 # deb-src http://p pa.launchpad.net/linuxuprising/apps/ubuntu bionic main deb-src http://ppa.launchpad.net/linuxuprising/apps/ubuntu bionic main

/etc/apt/sources.list.d/freecad-maintainers-ubuntu-freecad-daily-bionic.list

     1 deb http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu bionic main
     2 # deb-src http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu bionic main

/etc/apt/sources.list.d/maarten-fonville-ubuntu-android-studio-bionic.list

/etc/apt/sources.list.d/danielrichter2007-ubuntu-grub-customizer-bionic.list

/etc/apt/sources.list.d/linuxuprising-ubuntu-apps-bionic.list

     1 deb http://ppa.launchpad.net/linuxuprising/apps/ubuntu bionic main
     2 # deb-src http://ppa.launchpad.net/linuxuprising/apps/ubuntu bionic main

/etc/apt/sources.list.d/softmaker.list

     1 #SoftMaker Office repository
     2 deb http://shop.softmaker.com/repo/apt wheezy non-free
navin@linux:~$
----------------------------------- E N D ----------------------------------------

Thanks.
Navin Talati / 17-05-2019

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

If you have a close look at your Output, you should see that the two last lines in /etc/apt/sources.list have a complete different look that all other lines. They are nonsense.

Suggestion:

Issue the command
sudo gedit /etc/apt/sources.list
and in the editor window that opens scroll down to the very end and delete the last two lines (those containing linuxuprising).
Then save the file and close the editor.

Revision history for this message
Navin Talati (n-m-talati) said :
#4

Means #99 and #100 are to be deleted?
Is my understanding correct?
Please confirm.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Isn't this what I wrote?
Yes!

Revision history for this message
Navin Talati (n-m-talati) said :
#6

Deleted #99 and #100.
Now it is ok.
No error appears.
Thanks a lot, SIR.
Navin Talati / 25-05-2019

Revision history for this message
Navin Talati (n-m-talati) said :
#7

Thanks Manfred Hampl, that solved my question.