Unable to locate package php-gettext digitalocean

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I have the same problem and aint fixing by sudo apt-get install php7.0-mbstring

I was facing the same problem. I'll describe the things I did to fix it on Ubuntu 10.10.

1] make sure you have 'gettext' installed,

sudo apt-get install gettext

Alternatively, you can install 'php-gettext' if 'gettext' cannot be installed. The package 'php-gettext' is not required if you already have 'gettext' installed.

2] Then generate the locale for your language. In this example I'll use 'sv_SE'. Look up the supported locales in '/usr/share/i18n/SUPPORTED',

less /usr/share/i18n/SUPPORTED

You'll find multiple lines that start with 'sv_SE',

sv_SE.UTF-8 UTF-8
sv_SE ISO-8859-1
sv_SE.ISO-8859-15 ISO-8859-15

This means you have multiple options for generating the locale for sv_SE. One of the options does not have a period [.] in its name [i.e. sv_SE ISO-8859-1]; this is the default character set for that locale. To generate the locale for the default character set, run the following command,

sudo locale-gen sv_SE

If you want to generate that locale for the UTF-8 character set, run this command,

sudo locale-gen sv_SE.UTF-8

Restart Apache after generating locales [it won't find the newly generated locales otherwise],

sudo service apache2 restart

3] Finally, update your PHP script to match the locale you generated. If you generated the locale for 'sv_SE',

setlocale[LC_ALL, "sv_SE"];

But if you generated the UTF-8 equivalent of that locale, use,

setlocale[LC_ALL, "sv_SE.UTF-8"];

All should work now.

Found a solution for this.

Install and configure Debian 11 [in my case you can use Ubuntu]Due to issues with Debian and php-php-gettext [gettext is not used anymore in Debian 11 and newer version of Ubuntu]

in the terminal run:

sudo -i

apt-get -y install git

3. Clone the dev-branch git clone //github.com/fogproject/fogproject.git fogproject-dev-branch; cd fogproject-dev-branch; git checkout dev-branch

4. We are using dev-branch because when the new FOG came out it was before the release of Debian 11 and the new changes with gettext

sudo -i

cd /path/to/fogproject-dev-branch/bin

./installfog.sh

6. Start with Normal, N, IP and DHCP Y, everything else default, at the end press next

7. Finish installation IP address/fog/management

Resources: How to install GIT - //wiki.fogproject.org/wiki/index.php?title=Getting_FOG#Install_GIT_on_Debian_or_Ubuntu

Install Dev-branch version: //github.com/FOGProject/fogproject

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 //ppa.launchpad.net/nijel/phpmyadmin/ubuntu bionic Release
  404  Not Found [IP: 91.189.95.83 80]
Hit:6 //archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:7 //download.webmin.com/download/repository sarge Release
Reading package lists... Done
E: The repository '//ppa.launchpad.net/nijel/phpmyadmin/ubuntu bionic Release' does not have a Release file.

Can someone help with this?

asked Aug 5, 2018 at 8:53

2

This worked for me:

sudo add-apt-repository universe

Then:

sudo apt install phpmyadmin

answered Sep 12, 2018 at 11:04

2

Your ppa doesn't serve phpmyadmin for bionic version. You should remove ppa first:

sudo add-apt-repository --remove ppa:nijel/phpmyadmin
sudo apt update

then run your command again

sudo apt install phpmyadmin php-mbstring php-gettext

answered Aug 5, 2018 at 9:09

5

I have precisely the same issue. Tried sudo apt install phpmyadmin [with and without php-gettext and php-mbstring which I installed separately as I am using php7.1] but always get E: Unable to locate package phpmyadmin

and for the add-add-repository

E: The repository '//ppa.launchpad.net/nijel/phpmyadmin/ubuntu bionic Relea se' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disa bled by default.

Also tried downloading the package from a mirror but got nowhere with that either.

Is the ppa broken and is there another solution or workaround or something I can do to help resolve this issue?

answered Aug 17, 2018 at 11:11

1

Chủ Đề