webmin / authentic-theme

Official theme for the best server management panel of the 21st Century
https://authentic-theme.com
MIT License
947 stars 163 forks source link

I followed the instructions on `https://webmin.com/download` and i have Dates format instead of Locale #1666

Closed Sopor closed 1 year ago

Sopor commented 1 year ago

I installed a new Webmin and i did as you @iliajie told me to do, but the date and time use Dates format and not Locale.

I followed the instructions on https://webmin.com/download.

image

This is a total new installation of DietPi running Debian 12.

Shouldn't everything be installed by running apt install webmin?

iliajie commented 1 year ago

Hello,

Yes. Everything should be installed but only if packages are provided by your OS. For instance, my version of Debian 12 have all the dependencies installed.

Sopor commented 1 year ago

I ran the command you told me to do here and why would it try to install all this if the Webmin installation includes everything?

How on earth should someone know that all these extra packages are needed?

If i follow the install instructions i assume everything will be installed.

~$ sudo apt install libdatetime-perl libdatetime-timezone-perl libdatetime-locale-perl libtime-piece-perl
[sudo] password for xxxxxxx:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'perl' instead of 'libtime-piece-perl'
perl is already the newest version (5.36.0-7).
perl set to manually installed.
The following additional packages will be installed:
  libalgorithm-c3-perl libb-hooks-endofscope-perl libb-hooks-op-check-perl libclass-c3-perl libclass-data-inheritable-perl libclass-inspector-perl
  libclass-method-modifiers-perl libclass-singleton-perl libdata-optlist-perl libdevel-callchecker-perl libdevel-stacktrace-perl
  libdynaloader-functions-perl libeval-closure-perl libexception-class-perl libfile-sharedir-perl libmodule-implementation-perl
  libmodule-runtime-perl libmro-compat-perl libnamespace-autoclean-perl libnamespace-clean-perl libpackage-stash-perl libparams-classify-perl
  libparams-util-perl libparams-validationcompiler-perl librole-tiny-perl libspecio-perl libsub-exporter-perl libsub-exporter-progressive-perl
  libsub-identify-perl libsub-install-perl libsub-name-perl libsub-quote-perl libtry-tiny-perl libvariable-magic-perl libxstring-perl
Suggested packages:
  libscalar-number-perl libtest-fatal-perl
Recommended packages:
  libclass-c3-xs-perl libdevel-lexalias-perl libpackage-stash-xs-perl libclass-xsaccessor-perl libref-util-perl
The following NEW packages will be installed:
  libalgorithm-c3-perl libb-hooks-endofscope-perl libb-hooks-op-check-perl libclass-c3-perl libclass-data-inheritable-perl libclass-inspector-perl
  libclass-method-modifiers-perl libclass-singleton-perl libdata-optlist-perl libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl
  libdevel-callchecker-perl libdevel-stacktrace-perl libdynaloader-functions-perl libeval-closure-perl libexception-class-perl libfile-sharedir-perl
  libmodule-implementation-perl libmodule-runtime-perl libmro-compat-perl libnamespace-autoclean-perl libnamespace-clean-perl libpackage-stash-perl
  libparams-classify-perl libparams-util-perl libparams-validationcompiler-perl librole-tiny-perl libspecio-perl libsub-exporter-perl
  libsub-exporter-progressive-perl libsub-identify-perl libsub-install-perl libsub-name-perl libsub-quote-perl libtry-tiny-perl
  libvariable-magic-perl libxstring-perl
0 upgraded, 38 newly installed, 0 to remove and 0 not upgraded.
Need to get 3927 kB of archives.
After this operation, 30.0 MB of additional disk space will be used.
iliajie commented 1 year ago

How on earth should someone know that all these extra packages are needed?

You don't need to know anything, just use the instructions from webmin.com, i.e.:

curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
sh setup-repos.sh
apt-get install webmin

If i follow the install instructions i assume everything will be installed.

Which instructions did you follow exactly?

Sopor commented 1 year ago

I did exactly as described on the webmin page. That is why i think something isn't right.

curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
sh setup-repos.sh
apt install webmin

BTW, apt-get is the old command. The new command is apt, but both do work.

Something i also noticed when i installed Webmin, i need to do it as root.

When you install something you use sudo, but here i got a message that i need to do it as root.

Why isn't that explained on the installation page that i need to be logged in as root?

iliajie commented 1 year ago

Which Debian instance are you using exactly? Do you have a download link?

Sopor commented 1 year ago

DietPi and this was on an older RPi 2, so i have to use the ARMv7 version: https://dietpi.com/downloads/images/DietPi_RPi-ARMv7-Bookworm.7z

Sopor commented 1 year ago

Suggested packages: libscalar-number-perl libtest-fatal-perl Recommended packages: libclass-c3-xs-perl libdevel-lexalias-perl libpackage-stash-xs-perl libclass-xsaccessor-perl libref-util-perl

I also wondering if all these packages will be installed?

It is only recommended and suggested packages, so if i get this right they will not be installed if i won't do it manually.

Do i really need them to get Webmin to work?

iliajie commented 1 year ago

I have tried DietPi Bookwork NativePC (Minimal), e.g.:

image

Interesting distro, never used it before.

I did exactly as described on the webmin page. That is why i think something isn't right.

Apparently, APT defaults can be different, the solution for your problem is as simple as:

apt-get install webmin --install-recommends
Sopor commented 1 year ago

So, it is the recommender packages that are missing and to get them to install i need to add --install-recommends? libclass-c3-xs-perl libdevel-lexalias-perl libpackage-stash-xs-perl libclass-xsaccessor-perl libref-util-perl

You follow guides because you want a smooth installation, but that is not what you get. 😥

Any reason that you can't update your guide to: apt install webmin --install-recommends in case someone else get the same problem as i did? Will it harm something if --install-recommends isn't needed and you use that option?

iliajie commented 1 year ago

So, it is the recommender packages that are missing and to get them to install i need to add --install-recommends? You follow guides because you want a smooth installation, but that is not what you get. 😥

Yes. I have updated the docs as well.

Any reason that you can't update your guide to: apt install webmin --install-recommends in case someone else get the same problem as i did? Will it harm something if --install-recommends isn't needed and you use that option?

I already did. @jcameron Jamie, please rebuild webmin.com.

jcameron commented 1 year ago

Ok, doing it now ..

iliajie commented 1 year ago

Perfect, thanks!