Unable to locate package phpmyadmin on Ubuntu Server 18.04 - linux

Whenever I try to install phpmyadmin on my ubuntu server 18.04 I get the following errors
sudo apt install phpmyadmin php-mbstring php-gettext
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package phpmyadmin
E: Unable to locate package php-mbstring
E: Unable to locate package php-gettext
Most threads I ca find suggest reupdating and upgrading using apt, but doing so doesn't do anything, also I get that error on the fourth line
Err:5 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Hit:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:7 http://download.webmin.com/download/repository sarge Release
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu bionic Release' does not have a Release file.
Can someone help with this?

On the Ubuntu Server 18.04 the list of apt sources is rather short and secure. If you want to install phpmyadmin or autossh or number of other packages which are not supported in main sources list, you should adjust the sources list.
$ sudo apt edit-sources
You can use the following list:
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
More information can be found here:
handyman.dulare.com/ubuntu-18-04-bionic-unable-to-locate-package...

Related

error while updating in linu terminal ubuntu

I tried to update in linux ubuntu using the traditional command in it's cmd
sudo apt-get update
But when ever i try it it always return with so many errors and no update is done:
Err:1 http://us.archive.ubuntu.com/ubuntu artful InRelease
403 Forbidden [IP: 91.189.91.23 80]
Err:2 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease
403 Forbidden [IP: 91.189.91.26 80]
Err:3 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease
403 Forbidden [IP: 91.189.91.23 80]
Err:4 http://ppa.launchpad.net/ansible/ansible/ubuntu artful InRelease
500 Operation not permitted
Err:5 http://security.ubuntu.com/ubuntu artful-security InRelease
500 Operation not permitted [IP: 91.189.88.152 80]
Reading package lists... Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/artful
/InRelease 403 Forbidden [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/artful-updates
/InRelease 403 Forbidden [IP: 91.189.91.26 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/artful-
backports/InRelease 403 Forbidden [IP: 91.189.91.23 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/artful-security
/InRelease 500 Operation not permitted [IP: 91.189.88.152 80]
E: Failed to fetch http://ppa.launchpad.net/ansible/ansible/ubuntu/dists
/artful/InRelease 500 Operation not permitted
E: Some index files failed to download. They have been ignored, or old ones
used instead.
now i have already tried to use this command
sudo rm /etc/apt/sources.list.d/*
As well as removing ppa's and getting something new.
i would really appreciate if anyone could help me.
Thanks in advance.
That is the output when i typed/
sudo nano /etc/apt/sources.list
GNU nano 2.8.6 File: /etc/apt/sources.list
# deb cdrom:[Ubuntu 17.10 _Artful Aardvark_ - Release amd64 (20180105.1)]/ artf$
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ artful main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ artful universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful universe
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates universe
[ Read 51 lines ]
^G Get Help ^O Write Out ^W Where Is ^K Cut Text ^J Justify ^C Cur Pos
^X Exit ^R Read File ^\ Replace ^U Uncut Text^T To Spell ^_ Go To Line

linode | ubuntu | sudo apt-get update | mirror 404 error

On Linode (Ubuntu 16.10), after enabling UFW firewall via
sudo ufw allow OpenSSH
sudo ufw enable
sudo ufw allow in "Apache Full"
(though I'm not completely sure the firewall setup is the source of my issues...)
sudo apt-get update is giving me the following message:
Ign:1 http://mirrors.linode.com/ubuntu yakkety InRelease
Ign:2 http://mirrors.linode.com/ubuntu yakkety-updates InRelease
Ign:3 http://mirrors.linode.com/ubuntu yakkety-backports InRelease
Err:4 http://mirrors.linode.com/ubuntu yakkety Release
404 Not Found [IP: ****:****:*::****:**** 80]
Err:5 http://mirrors.linode.com/ubuntu yakkety-updates Release
404 Not Found [IP: ****:****:*::****:**** 80]
Err:6 http://mirrors.linode.com/ubuntu yakkety-backports Release
404 Not Found [IP: ****:****:*::****:**** 80]
Ign:7 http://security.ubuntu.com/ubuntu yakkety-security InRelease
Err:8 http://security.ubuntu.com/ubuntu yakkety-security Release
404 Not Found [IP: ****:***:****::** 80]
Reading package lists... Done
E: The repository 'http://mirrors.linode.com/ubuntu yakkety Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.linode.com/ubuntu yakkety-updates Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.linode.com/ubuntu yakkety-backports Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://security.ubuntu.com/ubuntu yakkety-security Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
The source file /etc/apt/source.list :
# deb http://mirrors.linode.com/ubuntu/ yakkety main restricted
# deb http://mirrors.linode.com/ubuntu/ yakkety-updates main restricted
# deb http://security.ubuntu.com/ubuntu yakkety-security main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.linode.com/ubuntu/ yakkety main restricted
# deb-src http://mirrors.linode.com/ubuntu/ yakkety main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.linode.com/ubuntu/ yakkety-updates main restricted
# deb-src http://mirrors.linode.com/ubuntu/ yakkety-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirrors.linode.com/ubuntu/ yakkety universe
# deb-src http://mirrors.linode.com/ubuntu/ yakkety universe
deb http://mirrors.linode.com/ubuntu/ yakkety-updates universe
# deb-src http://mirrors.linode.com/ubuntu/ yakkety-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirrors.linode.com/ubuntu/ yakkety multiverse
# deb-src http://mirrors.linode.com/ubuntu/ yakkety multiverse
deb http://mirrors.linode.com/ubuntu/ yakkety-updates multiverse
# deb-src http://mirrors.linode.com/ubuntu/ yakkety-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirrors.linode.com/ubuntu/ yakkety-backports main restricted universe multiverse
# deb-src http://mirrors.linode.com/ubuntu/ yakkety-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu yakkety partner
# deb-src http://archive.canonical.com/ubuntu yakkety partner
deb http://security.ubuntu.com/ubuntu yakkety-security main restricted
# deb-src http://security.ubuntu.com/ubuntu yakkety-security main restricted
deb http://security.ubuntu.com/ubuntu yakkety-security universe
# deb-src http://security.ubuntu.com/ubuntu yakkety-security universe
deb http://security.ubuntu.com/ubuntu yakkety-security multiverse
# deb-src http://security.ubuntu.com/ubuntu yakkety-security multiverse
I've tried sudo apt-get dist-update to no avail (also gives 404 errors).
I've also done unset http_proxy and unset https_proxy;
apt-get -o Acquire::ForceIPv4=true update - it still fails when using IPv4
I can ping 8.8.8.8 just fine.
...nothing's worked yet. Anyone have any idea how to fix this?
Response from Linode Support:
It looks like you are using an Ubuntu versions that's reached its end of life status.
https://wiki.ubuntu.com/Releases
You can reference the following link to see if you are able to update this in another manner. The other option is deploy an updated Ubuntu image for your server and copy your data over to the new disk.
https://help.ubuntu.com/community/EOLUpgrade
I was stuck on this as well. But I got it working.
I had to replace "us.archive.ubuntu.com" and "security.ubuntu.com" in /etc/apt/sources.list WITH "old-releases.ubuntu.com" and then I was able to finish downloading some of the packages, like Ayush Kumar said in sudo apt-get update fail on Ubuntu 17.04.
For the other updates that were listed by my Hosting company, Linode, I used the following:
I had to use the --allow-unauthenticated flag with sudo apt-get update.
sudo apt-get update --allow-unauthenticated
Then I was able to finish updating.

canonical source not found for jessie debian

I allways get this error:
name#debian-name:~$ sudo apt-get update
[sudo] password for name:
Ign http://archive.canonical.com jessie InRelease
Ign http://archive.canonical.com jessie Release.gpg
Ign http://archive.canonical.com jessie Release
Err http://archive.canonical.com jessie/partner amd64 Packages
404 Not Found [IP: 91.189.92.191 80]
Err http://archive.canonical.com jessie/partner i386 Packages
404 Not Found [IP: 91.189.92.191 80]
Ign http://archive.canonical.com jessie/partner Translation-en_US
Ign http://archive.canonical.com jessie/partner Translation-en
Ign http://repo.vivaldi.com stable InRelease
Hit http://repo.vivaldi.com stable Release.gpg
Hit http://repo.vivaldi.com stable Release
Get:1 http://repo.vivaldi.com stable/main amd64 Packages [8,859 B]
Get:2 http://repo.vivaldi.com stable/main i386 Packages [6,766 B]
Ign http://repo.vivaldi.com stable/main Translation-en_US
Ign http://repo.vivaldi.com stable/main Translation-en
Fetched 15.6 kB in 2s (6,035 B/s)
W: Failed to fetch
http://archive.canonical.com/ubuntu/dists/jessie/partner/binary-amd64/Packages 404 Not Found [IP: 91.189.92.191 80]
W: Failed to fetch
http://archive.canonical.com/ubuntu/dists/jessie/partner/binary-i386/Packages 404 Not Found [IP: 91.189.92.191 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
I removed all sources of the sources.list file besides the canonical and I still get this error.
So the sources.list has only the following source:
deb http://archive.canonical.com/ubuntu/ jessie partner
Why can't it find it?
Since you are sure you have Debian Jessie, you should use Debian list, not Ubuntu. For example, here is the default source list for German location:
deb http://ftp.de.debian.org/debian jessie main contrib non-free
deb-src http://ftp.de.debian.org/debian jessie main contrib non-free
deb http://ftp.de.debian.org/debian jessie-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.de.debian.org/debian jessie-backports main contrib non-free

install emacs 24.4 error on mint

I followed this link. But got error, how to fix?
$ sudo apt-get build-dep emacs24
[sudo] password for oracle:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for emacs24
$ cat /etc/apt/sources.list
#deb cdrom:[Linux Mint 17 _Qiana_ - Release amd64 20140530]/ trusty contrib main non-free
deb http://packages.linuxmint.com qiana main upstream import
deb http://extra.linuxmint.com qiana main
deb http://mirror.nexcess.net/ubuntu trusty main restricted universe multiverse
deb http://mirror.nexcess.net/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner
Open the software-sources application, and click "Enable source code repositories"
Then try again.
This is from my recipe for Travis CI:
sudo add-apt-repository -y ppa:cassou/emacs
sudo apt-get update -qq
sudo apt-get install -qq emacs24
Might be useful.

polarssl-dev - Ubuntu 14.04

I would like to install polarssl-dev for Ubuntu 14.04 from their repositories. I read this was available in universe on https://launchpad.net/ubuntu/+source/polarssl but I enabled universe including src, and it was not there. How could I do this?
# apt-get install polarssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package polarssl-dev
# grep univer /etc/apt/sources.list
deb http://be.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb http://be.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://be.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://be.archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://be.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
If somebody would not mind telling how I went wrong, I'd be really grateful.
Kind regards, Soph.
The package names for PolarSSL actually start with lib. This should work for you:
$ sudo apt-get install libpolarssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libpolarssl5
The following NEW packages will be installed:
libpolarssl-dev libpolarssl5
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 459 kB of archives.
After this operation, 1,962 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe libpolarssl5 amd64 1.3.4-1 [186 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty/universe libpolarssl-dev amd64 1.3.4-1 [274 kB]
Fetched 459 kB in 6s (71.3 kB/s)
Selecting previously unselected package libpolarssl5.
(Reading database ... 61244 files and directories currently installed.)
Preparing to unpack .../libpolarssl5_1.3.4-1_amd64.deb ...
Unpacking libpolarssl5 (1.3.4-1) ...
Selecting previously unselected package libpolarssl-dev.
Preparing to unpack .../libpolarssl-dev_1.3.4-1_amd64.deb ...
Unpacking libpolarssl-dev (1.3.4-1) ...
Setting up libpolarssl5 (1.3.4-1) ...
Setting up libpolarssl-dev (1.3.4-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

Resources