Update Packages from an ISO file

Asked by Debbih Farouk

Hello everyone;

I've copied the ISO file (Ubuntu 24.04)on the desktop in order to update Packages without offline but I get this :

ouakil@M-2300859:~$ sudo apt install bcmwl-kernel-source
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package bcmwl-kernel-source
ouakil@M-2300859:~$

Question information

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

What do you want to update?
Which Ubuntu release is your system running?
Which version of the package bcmwl-kernel-source do you have installed on your system?
I doubt that there is any higher version of the bcmwl-kernel-source package available on the ISO file than the one that you get during initial installation.

Revision history for this message
Debbih Farouk (farok76) said :
#2

Hi Manfred;

I have Ubuntu 24.04 installed as I wanna join the domain, I have to update packages like "apt ", and because I don't have internet I copied Ubuntu ISO file on the Desktop in order to update Packages offline.

Revision history for this message
Bernard Stafford (bernard010) said :
#3
Revision history for this message
Manfred Hampl (m-hampl) said :
#4

I still do not understand what you want to "update" and how installing bcmwl-kernel-source is related to joining a domain.

For installing the broadcom sta device driver, the easiest way is:
download the file
http://archive.ubuntu.com/ubuntu/pool/restricted/b/broadcom-sta/broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb
to a USB stick, plug that USB stick into the target system, mount it, open a terminal window and issue the following commands:

Change directory (cd) into the directory of the USB stick where the deb file is stored (probably something like /media/your_username/label_of_the_USB_stick)
Finally issue the command

sudo dpkg -i broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb

If you receive an error message, please provide the text that we can try helping further.

Revision history for this message
Debbih Farouk (farok76) said :
#5

Hi Manfred;

I have copied the downloaded file (broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb) into USB stick and execute the command "sudo dpkg -i broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb"

I got this:

ouakil@M-2300859:~$ sudo dpkg -ibroadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb
[sudo] password for ouakil:
dpkg: error: conflicting actions -b (--build) and -i (--install)

Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
ouakil@M-2300859:~$

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

Typo error, there is a space character missing between the option "-i" and the file name "broadcom-..."

Revision history for this message
Debbih Farouk (farok76) said :
#7

ouakil@M-2300859:~$ sudo dpkg -i broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb
dpkg: error: cannot access archive 'broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb': No such file or directory

Revision history for this message
Debbih Farouk (farok76) said :
#8

USB stick with deb file is connected

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

You probably have not changed directory into the folder where the file is stored, have you?

Open the file explorer.
On the left hand side you should see an icon that reflects the USB stick. Click on it to mount the USB stick.

And then in the terminal window, what output do you get for
ls -l /media

Revision history for this message
Debbih Farouk (farok76) said :
#10

I changed the directory to the folder where the file is stored and I got this:
ouakil@M-2300859:/media/ouakil/045B-7C3B$

After I executed the command (sudo dpkg -i broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb) I got this:
uakil@M-2300859:/media/ouakil/045B-7C3B$ sudo dpkg -i broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb
(Reading database ... 168924 files and directories currently installed.)
Preparing to unpack broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb ...
Unpacking broadcom-sta-dkms (6.30.223.271-23ubuntu1) over (6.30.223.271-23ubuntu1) ...
dpkg: dependency problems prevent configuration of broadcom-sta-dkms:
 broadcom-sta-dkms depends on dkms (>= 2.1.0.0); however:
  Package dkms is not installed.

dpkg: error processing package broadcom-sta-dkms (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 broadcom-sta-dkms

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#11

Ok, this is a different kind of error message, showing that loading the broadcom package partially worked, but you need another package as a dependency.

Copy the following file to the USB stick:
https://launchpad.net/ubuntu/+archive/primary/+files/dkms_3.0.11-1ubuntu13_all.deb

Then re-do the steps to mount the USB stick on the other system and issue the commands

sudo dpkg -i dkms_3.0.11-1ubuntu13_all.deb
sudo dpkg -i broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb

and finally report the outcome.
(There may be more dependent packages that need to be installed in a similar way.)

Revision history for this message
Debbih Farouk (farok76) said :
#12

uakil@M-2300859:/media/ouakil/045B-7C3B$ sudo dpkg -i dkms_3.0.11-1ubuntu13_all.deb
[sudo] password for ouakil:
Selecting previously unselected package dkms.
(Reading database ... 168924 files and directories currently installed.)
Preparing to unpack dkms_3.0.11-1ubuntu13_all.deb ...
Unpacking dkms (3.0.11-1ubuntu13) ...
dpkg: dependency problems prevent configuration of dkms:
 dkms depends on gcc; however:
  Package gcc is not installed.
 dkms depends on gcc-13; however:
  Package gcc-13 is not installed.
 dkms depends on dpkg-dev; however:
  Package dpkg-dev is not installed.
 dkms depends on make | build-essential; however:
  Package make is not installed.
  Package build-essential is not installed.

dpkg: error processing package dkms (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.12.0-4build2) ...
Errors were encountered while processing:
 dkms
ouakil@M-2300859:/media/ouakil/045B-7C3B$ sudo dpkg -i broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb
(Reading database ... 168948 files and directories currently installed.)
Preparing to unpack broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb ...
Unpacking broadcom-sta-dkms (6.30.223.271-23ubuntu1) over (6.30.223.271-23ubuntu1) ...
dpkg: dependency problems prevent configuration of broadcom-sta-dkms:
 broadcom-sta-dkms depends on dkms (>= 2.1.0.0); however:
  Package dkms is not configured yet.

dpkg: error processing package broadcom-sta-dkms (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 broadcom-sta-dkms
ouakil@M-2300859:/media/ouakil/045B-7C3B$

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

If you can connect that system to the internet in whatever manner, then these packages (and eventually some additional packages that they depend on) can be downloaded automatically.

If not, then we have to continue manually:
In the same way as before download the following packages and copy them to the USB stick, into the same directory as the other two:

https://launchpad.net/ubuntu/+archive/primary/+files/gcc_13.2.0-7ubuntu1_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/gcc-13_13.3.0-6ubuntu2~24.04_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/dpkg-dev_1.22.6ubuntu6.1_all.deb
https://launchpad.net/ubuntu/+archive/primary/+files/make_4.3-4.1build2_amd64.deb

Mount the stick at the target system and issue the commands

cd /media/ouakil/045B-7C3
sudo dpkg -i *.deb

and report the results.

Revision history for this message
Debbih Farouk (farok76) said :
#14

Good Morning Manfred,
As I told you before I have to join Domain to get Internet connection and because that I'm trying to update "apt" manually.

I downloaded the packages that you proposed and I got these after executed the command:

ouakil@M-2300859:/media/ouakil/045B-7C3B$ sudo dpkg -i *.deb
[sudo] password for ouakil:
(Reading database ... 168948 files and directories currently installed.)
Preparing to unpack broadcom-sta-dkms_6.30.223.271-23ubuntu1_all.deb ...
Unpacking broadcom-sta-dkms (6.30.223.271-23ubuntu1) over (6.30.223.271-23ubuntu1) ...
Preparing to unpack dkms_3.0.11-1ubuntu13_all.deb ...
Unpacking dkms (3.0.11-1ubuntu13) over (3.0.11-1ubuntu13) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack dpkg-dev_1.22.6ubuntu6.1_all.deb ...
Unpacking dpkg-dev (1.22.6ubuntu6.1) ...
Selecting previously unselected package gcc-13.
Preparing to unpack gcc-13_13.3.0-6ubuntu2~24.04_amd64.deb ...
Unpacking gcc-13 (13.3.0-6ubuntu2~24.04) ...
Selecting previously unselected package gcc.
Preparing to unpack gcc_13.2.0-7ubuntu1_amd64.deb ...
Unpacking gcc (4:13.2.0-7ubuntu1) ...
Selecting previously unselected package make.
Preparing to unpack make_4.3-4.1build2_amd64.deb ...
Unpacking make (4.3-4.1build2) ...
dpkg: dependency problems prevent configuration of dpkg-dev:
 dpkg-dev depends on libdpkg-perl (= 1.22.6ubuntu6.1); however:
  Package libdpkg-perl is not installed.
 dpkg-dev depends on binutils; however:
  Package binutils is not installed.
 dpkg-dev depends on lto-disabled-list; however:
  Package lto-disabled-list is not installed.

dpkg: error processing package dpkg-dev (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcc-13:
 gcc-13 depends on gcc-13-x86-64-linux-gnu (= 13.3.0-6ubuntu2~24.04); however:
  Package gcc-13-x86-64-linux-gnu is not installed.
 gcc-13 depends on gcc-13-base (= 13.3.0-6ubuntu2~24.04); however:
  Version of gcc-13-base:amd64 on system is 13.2.0-23ubuntu4.
 gcc-13 depends on cpp-13 (= 13.3.0-6ubuntu2~24.04); however:
  Version of cpp-13 on system is 13.2.0-23ubuntu4.
 gcc-13 depends on binutils (>= 2.39); however:
  Package binutils is not installed.

dpkg: error processing package gcc-13 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcc:
 gcc depends on gcc-13 (>= 13.2.0-11~); however:
  Package gcc-13 is not configured yet.
 gcc depends on gcc-x86-64-linux-gnu (= 4:13.2.0-7ubuntu1); however:
  Package gcc-x86-64-linux-gnu is not installed.

dpkg: error processing package gcc (--install):
 dependency problems - leaving unconfigured
Setting up make (4.3-4.1build2) ...
dpkg: dependency problems prevent configuration of dkms:
 dkms depends on gcc; however:
  Package gcc is not configured yet.
 dkms depends on gcc-13; however:
  Package gcc-13 is not configured yet.
 dkms depends on dpkg-dev; however:
  Package dpkg-dev is not configured yet.

dpkg: error processing package dkms (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of broadcom-sta-dkms:
 broadcom-sta-dkms depends on dkms (>= 2.1.0.0); however:
  Package dkms is not configured yet.

dpkg: error processing package broadcom-sta-dkms (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.12.0-4build2) ...
Errors were encountered while processing:
 dpkg-dev
 gcc-13
 gcc
 dkms
 broadcom-sta-dkms
ouakil@M-2300859:/media/ouakil/045B-7C3B$

Revision history for this message
Manfred Hampl (m-hampl) said :
#15
Revision history for this message
Debbih Farouk (farok76) said :
#16

ouakil@M-2300859:~$ cd '/media/ouakil/507B-3C2D'
ouakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg -i *.deb
[sudo] password for ouakil:
Selecting previously unselected package binutils.
(Reading database ... 169345 files and directories currently installed.)
Preparing to unpack binutils_2.42-4ubuntu2.3_amd64 (2).deb ...
Unpacking binutils (2.42-4ubuntu2.3) ...
Selecting previously unselected package binutils-common:amd64.
Preparing to unpack binutils-common_2.42-4ubuntu2.3_amd64 (1).deb ...
Unpacking binutils-common:amd64 (2.42-4ubuntu2.3) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack binutils-x86-64-linux-gnu_2.42-4ubuntu2.3_amd64 (2).deb ...
Unpacking binutils-x86-64-linux-gnu (2.42-4ubuntu2.3) ...
Preparing to unpack cpp-13_13.3.0-6ubuntu2~24.04_amd64 (2).deb ...
Unpacking cpp-13 (13.3.0-6ubuntu2~24.04) over (13.2.0-23ubuntu4) ...
Preparing to unpack gcc-13-base_13.3.0-6ubuntu2~24.04_amd64 (2).deb ...
Unpacking gcc-13-base:amd64 (13.3.0-6ubuntu2~24.04) over (13.2.0-23ubuntu4) ...
Selecting previously unselected package gcc-13-x86-64-linux-gnu.
Preparing to unpack gcc-13-x86-64-linux-gnu_13.3.0-6ubuntu2~24.04_amd64.deb ...
Unpacking gcc-13-x86-64-linux-gnu (13.3.0-6ubuntu2~24.04) ...
Selecting previously unselected package gcc-x86-64-linux-gnu.
Preparing to unpack gcc-x86-64-linux-gnu_13.2.0-7ubuntu1_amd64 (2).deb ...
Unpacking gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack libdpkg-perl_1.22.6ubuntu6.1_all (2).deb ...
Unpacking libdpkg-perl (1.22.6ubuntu6.1) ...
Selecting previously unselected package lto-disabled-list.
Preparing to unpack lto-disabled-list_47_all (2).deb ...
Unpacking lto-disabled-list (47) ...
dpkg: dependency problems prevent configuration of binutils:
 binutils depends on libbinutils (= 2.42-4ubuntu2.3); however:
  Package libbinutils is not installed.

dpkg: error processing package binutils (--install):
 dependency problems - leaving unconfigured
Setting up binutils-common:amd64 (2.42-4ubuntu2.3) ...
dpkg: dependency problems prevent configuration of binutils-x86-64-linux-gnu:
 binutils-x86-64-linux-gnu depends on libbinutils (= 2.42-4ubuntu2.3); however:
  Package libbinutils is not installed.
 binutils-x86-64-linux-gnu depends on libctf-nobfd0 (>= 2.36); however:
  Package libctf-nobfd0 is not installed.
 binutils-x86-64-linux-gnu depends on libctf0 (>= 2.36); however:
  Package libctf0 is not installed.
 binutils-x86-64-linux-gnu depends on libgprofng0 (>= 2.41); however:
  Package libgprofng0 is not installed.
 binutils-x86-64-linux-gnu depends on libsframe1 (>= 2.41); however:
  Package libsframe1 is not installed.

dpkg: error processing package binutils-x86-64-linux-gnu (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cpp-13:
 cpp-13 depends on cpp-13-x86-64-linux-gnu (= 13.3.0-6ubuntu2~24.04); however:
  Version of cpp-13-x86-64-linux-gnu on system is 13.2.0-23ubuntu4.

dpkg: error processing package cpp-13 (--install):
 dependency problems - leaving unconfigured
Setting up gcc-13-base:amd64 (13.3.0-6ubuntu2~24.04) ...
dpkg: dependency problems prevent configuration of gcc-13-x86-64-linux-gnu:
 gcc-13-x86-64-linux-gnu depends on cpp-13-x86-64-linux-gnu (= 13.3.0-6ubuntu2~24.04); however:
  Version of cpp-13-x86-64-linux-gnu on system is 13.2.0-23ubuntu4.
 gcc-13-x86-64-linux-gnu depends on libcc1-0 (>= 13.3.0-6ubuntu2~24.04); however:
  Package libcc1-0 is not installed.
 gcc-13-x86-64-linux-gnu depends on binutils-x86-64-linux-gnu (>= 2.39); however:
  Package binutils-x86-64-linux-gnu is not configured yet.
 gcc-13-x86-64-linux-gnu depends on libgcc-13-dev (= 13.3.0-6ubuntu2~24.04); however:
  Package libgcc-13-dev is not installed.

dpkg: error processing package gcc-13-x86-64-linux-gnu (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcc-x86-64-linux-gnu:
 gcc-x86-64-linux-gnu depends on gcc-13-x86-64-linux-gnu (>= 13.2.0-11~); however:
  Package gcc-13-x86-64-linux-gnu is not configured yet.

dpkg: error processing package gcc-x86-64-linux-gnu (--install):
 dependency problems - leaving unconfigured
Setting up libdpkg-perl (1.22.6ubuntu6.1) ...
Setting up lto-disabled-list (47) ...
Processing triggers for man-db (2.12.0-4build2) ...
Errors were encountered while processing:
 binutils
 binutils-x86-64-linux-gnu
 cpp-13
 gcc-13-x86-64-linux-gnu
 gcc-x86-64-linux-gnu
ouakil@M-2300859:/media/ouakil/507B-3C2D$

Revision history for this message
Manfred Hampl (m-hampl) said :
#17
Revision history for this message
Debbih Farouk (farok76) said :
#18

uakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg -i *.deb
(Reading database ... 169841 files and directories currently installed.)
Preparing to unpack cpp-13-x86-64-linux-gnu_13.3.0-6ubuntu2~24.04_amd64.deb ...
Unpacking cpp-13-x86-64-linux-gnu (13.3.0-6ubuntu2~24.04) over (13.2.0-23ubuntu4) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack libbinutils_2.42-4ubuntu2.3_amd64.deb ...
Unpacking libbinutils:amd64 (2.42-4ubuntu2.3) ...
Selecting previously unselected package libctf0:amd64.
Preparing to unpack libctf0_2.42-4ubuntu2.3_amd64.deb ...
Unpacking libctf0:amd64 (2.42-4ubuntu2.3) ...
Selecting previously unselected package libctf-nobfd0:amd64.
Preparing to unpack libctf-nobfd0_2.42-4ubuntu2.3_amd64.deb ...
Unpacking libctf-nobfd0:amd64 (2.42-4ubuntu2.3) ...
Selecting previously unselected package libgcc-13-dev:amd64.
Preparing to unpack libgcc-13-dev_13.3.0-6ubuntu2~24.04_amd64.deb ...
Unpacking libgcc-13-dev:amd64 (13.3.0-6ubuntu2~24.04) ...
Selecting previously unselected package libgprofng0:amd64.
Preparing to unpack libgprofng0_2.42-4ubuntu2.3_amd64.deb ...
Unpacking libgprofng0:amd64 (2.42-4ubuntu2.3) ...
Selecting previously unselected package libsframe1:amd64.
Preparing to unpack libsframe1_2.42-4ubuntu2.3_amd64.deb ...
Unpacking libsframe1:amd64 (2.42-4ubuntu2.3) ...
Setting up cpp-13-x86-64-linux-gnu (13.3.0-6ubuntu2~24.04) ...
Setting up libctf-nobfd0:amd64 (2.42-4ubuntu2.3) ...
dpkg: dependency problems prevent configuration of libgcc-13-dev:amd64:
 libgcc-13-dev:amd64 depends on libitm1 (>= 13.3.0-6ubuntu2~24.04); however:
  Package libitm1 is not installed.
 libgcc-13-dev:amd64 depends on libasan8 (>= 13.3.0-6ubuntu2~24.04); however:
  Package libasan8 is not installed.
 libgcc-13-dev:amd64 depends on liblsan0 (>= 13.3.0-6ubuntu2~24.04); however:
  Package liblsan0 is not installed.
 libgcc-13-dev:amd64 depends on libtsan2 (>= 13.3.0-6ubuntu2~24.04); however:
  Package libtsan2 is not installed.
 libgcc-13-dev:amd64 depends on libubsan1 (>= 13.3.0-6ubuntu2~24.04); however:
  Package libubsan1 is not installed.
 libgcc-13-dev:amd64 depends on libhwasan0 (>= 13.3.0-6ubuntu2~24.04); however:
  Package libhwasan0 is not installed.
 libgcc-13-dev:amd64 depends on libquadmath0 (>= 13.3.0-6ubuntu2~24.04); however:
  Package libquadmath0 is not installed.

dpkg: error processing package libgcc-13-dev:amd64 (--install):
 dependency problems - leaving unconfigured
Setting up libsframe1:amd64 (2.42-4ubuntu2.3) ...
Setting up libbinutils:amd64 (2.42-4ubuntu2.3) ...
Setting up libctf0:amd64 (2.42-4ubuntu2.3) ...
Setting up libgprofng0:amd64 (2.42-4ubuntu2.3) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Errors were encountered while processing:
 libgcc-13-dev:amd64
ouakil@M-2300859:/media/ouakil/507B-3C2D$

Revision history for this message
Manfred Hampl (m-hampl) said :
#19
Revision history for this message
Debbih Farouk (farok76) said :
#20

ouakil@M-2300859:~$ cd '/media/ouakil/507B-3C2D'
ouakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg -i *.deb
[sudo] password for ouakil:
Selecting previously unselected package libasan8:amd64.
(Reading database ... 170040 files and directories currently installed.)
Preparing to unpack libasan8_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libasan8:amd64 (14.2.0-4ubuntu2~24.04) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack libcc1-0_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libcc1-0:amd64 (14.2.0-4ubuntu2~24.04) ...
Selecting previously unselected package libhwasan0:amd64.
Preparing to unpack libhwasan0_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libhwasan0:amd64 (14.2.0-4ubuntu2~24.04) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack libitm1_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libitm1:amd64 (14.2.0-4ubuntu2~24.04) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack liblsan0_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking liblsan0:amd64 (14.2.0-4ubuntu2~24.04) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack libquadmath0_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libquadmath0:amd64 (14.2.0-4ubuntu2~24.04) ...
Selecting previously unselected package libtsan2:amd64.
Preparing to unpack libtsan2_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libtsan2:amd64 (14.2.0-4ubuntu2~24.04) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack libubsan1_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libubsan1:amd64 (14.2.0-4ubuntu2~24.04) ...
dpkg: dependency problems prevent configuration of libasan8:amd64:
 libasan8:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libasan8:amd64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libcc1-0:amd64:
 libcc1-0:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libcc1-0:amd64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libhwasan0:amd64:
 libhwasan0:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libhwasan0:amd64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libitm1:amd64:
 libitm1:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libitm1:amd64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of liblsan0:amd64:
 liblsan0:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package liblsan0:amd64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libquadmath0:amd64:
 libquadmath0:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libquadmath0:amd64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libtsan2:amd64:
 libtsan2:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libtsan2:amd64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libubsan1:amd64:
 libubsan1:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libubsan1:amd64 (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Errors were encountered while processing:
 libasan8:amd64
 libcc1-0:amd64
 libhwasan0:amd64
 libitm1:amd64
 liblsan0:amd64
 libquadmath0:amd64
 libtsan2:amd64
 libubsan1:amd64

ouakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg --configure -a
Setting up cpp-13 (13.3.0-6ubuntu2~24.04) ...
dpkg: dependency problems prevent configuration of libquadmath0:amd64:
 libquadmath0:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libquadmath0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libubsan1:amd64:
 libubsan1:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libubsan1:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgcc-13-dev:amd64:
 libgcc-13-dev:amd64 depends on libubsan1 (>= 13.3.0-6ubuntu2~24.04); however:
  Package libubsan1:amd64 is not configured yet.
 libgcc-13-dev:amd64 depends on libquadmath0 (>= 13.3.0-6ubuntu2~24.04); however:
  Package libquadmath0:amd64 is not configured yet.

dpkg: error processing package libgcc-13-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libhwasan0:amd64:
 libhwasan0:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libhwasan0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libasan8:amd64:
 libasan8:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libasan8:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libtsan2:amd64:
 libtsan2:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libtsan2:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libcc1-0:amd64:
 libcc1-0:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libcc1-0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of liblsan0:amd64:
 liblsan0:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package liblsan0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libitm1:amd64:
 libitm1:amd64 depends on gcc-14-base (= 14.2.0-4ubuntu2~24.04); however:
  Version of gcc-14-base:amd64 on system is 14-20240412-0ubuntu1.

dpkg: error processing package libitm1:amd64 (--configure):
 dependency problems - leaving unconfigured
Setting up binutils-x86-64-linux-gnu (2.42-4ubuntu2.3) ...
dpkg: dependency problems prevent configuration of gcc-13-x86-64-linux-gnu:
 gcc-13-x86-64-linux-gnu depends on libcc1-0 (>= 13.3.0-6ubuntu2~24.04); however:
  Package libcc1-0:amd64 is not configured yet.
 gcc-13-x86-64-linux-gnu depends on libgcc-13-dev (= 13.3.0-6ubuntu2~24.04); however:
  Package libgcc-13-dev:amd64 is not configured yet.

dpkg: error processing package gcc-13-x86-64-linux-gnu (--configure):
 dependency problems - leaving unconfigured
Setting up binutils (2.42-4ubuntu2.3) ...
Setting up dpkg-dev (1.22.6ubuntu6.1) ...
dpkg: dependency problems prevent configuration of gcc-13:
 gcc-13 depends on gcc-13-x86-64-linux-gnu (= 13.3.0-6ubuntu2~24.04); however:
  Package gcc-13-x86-64-linux-gnu is not configured yet.

dpkg: error processing package gcc-13 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcc-x86-64-linux-gnu:
 gcc-x86-64-linux-gnu depends on gcc-13-x86-64-linux-gnu (>= 13.2.0-11~); however:
  Package gcc-13-x86-64-linux-gnu is not configured yet.

dpkg: error processing package gcc-x86-64-linux-gnu (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcc:
 gcc depends on gcc-13 (>= 13.2.0-11~); however:
  Package gcc-13 is not configured yet.
 gcc depends on gcc-x86-64-linux-gnu (= 4:13.2.0-7ubuntu1); however:
  Package gcc-x86-64-linux-gnu is not configured yet.

dpkg: error processing package gcc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dkms:
 dkms depends on gcc; however:
  Package gcc is not configured yet.
 dkms depends on gcc-13; however:
  Package gcc-13 is not configured yet.

dpkg: error processing package dkms (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of broadcom-sta-dkms:
 broadcom-sta-dkms depends on dkms (>= 2.1.0.0); however:
  Package dkms is not configured yet.

dpkg: error processing package broadcom-sta-dkms (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libquadmath0:amd64
 libubsan1:amd64
 libgcc-13-dev:amd64
 libhwasan0:amd64
 libasan8:amd64
 libtsan2:amd64
 libcc1-0:amd64
 liblsan0:amd64
 libitm1:amd64
 gcc-13-x86-64-linux-gnu
 gcc-13
 gcc-x86-64-linux-gnu
 gcc
 dkms
 broadcom-sta-dkms
ouakil@M-2300859:/media/ouakil/507B-3C2D$

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#21
Revision history for this message
Debbih Farouk (farok76) said :
#22

I think it is done

ouakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg -i *.deb
[sudo] password for ouakil:
Sorry, try again.
[sudo] password for ouakil:
(Reading database ... 170069 files and directories currently installed.)
Preparing to unpack gcc-14-base_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking gcc-14-base:amd64 (14.2.0-4ubuntu2~24.04) over (14-20240412-0ubuntu1) ...
Setting up gcc-14-base:amd64 (14.2.0-4ubuntu2~24.04) ...
ouakil@M-2300859:/media/ouakil/507B-3C2D$

(If it is done can I update or install "apt' now ?

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

Now please re-run

sudo dpkg --configure -a

and report the results.
If there is no error any more, then the broadcom WiFI device driver should now be installed.

I still do not understand what you mean by "update or install 'apt' "
The apt package was already installed and does not need an update.
What you must do is connect your system to the internet.

Revision history for this message
Debbih Farouk (farok76) said :
#24

ouakil@M-2300859:~$ sudo dpkg --configure -a
[sudo] password for ouakil:
Setting up libquadmath0:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up libubsan1:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up libhwasan0:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up libasan8:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up libtsan2:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up libcc1-0:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up liblsan0:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up libitm1:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up libgcc-13-dev:amd64 (13.3.0-6ubuntu2~24.04) ...
Setting up gcc-13-x86-64-linux-gnu (13.3.0-6ubuntu2~24.04) ...
Setting up gcc-13 (13.3.0-6ubuntu2~24.04) ...
Setting up gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ...
Setting up gcc (4:13.2.0-7ubuntu1) ...
Setting up dkms (3.0.11-1ubuntu13) ...
Setting up broadcom-sta-dkms (6.30.223.271-23ubuntu1) ...
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 6.8.0-41-generic
Building initial module for 6.8.0-41-generic
Secure Boot not enabled on this system.
Done.

wl.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-41-generic/updates/dkms/
depmod...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
ouakil@M-2300859:~$

Revision history for this message
Debbih Farouk (farok76) said :
#25

Hello Mr Manfred;

....... ((I still do not understand what you mean by "update or install 'apt' "
The apt package was already installed and does not need an update.
What you must do is connect your system to the internet.))....

Since the beginning I couldn't join the Domain ''Al-mouradia.dz"
so How can I join it ?

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

For joining an Ubuntu system to an active directory domain, just do a web search for "ubuntu join domain" or something similar and follow the instructions that are shown.

It may be necessary to install additional software packages, and as long as you cannot access the internet from your system, you will have to manually download and install the packages, in the same way as it was done with the packages required for the broadcom driver.

What output do you receive for the command
realm discover al-mouradia.dz

Revision history for this message
Debbih Farouk (farok76) said :
#27

ouakil@M-2300859:~$ realm discover al-mouradia.dz
Command 'realm' not found, but can be installed with:
sudo apt install realmd
ouakil@M-2300859:~$ sudo apt install
[sudo] password for ouakil:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libatomic1 : Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed
 libgcc-s1 : Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed
 libgomp1 : Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed
 libstdc++6 : Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ouakil@M-2300859:~$ realm discover al-mouradia.dz
Command 'realm' not found, but can be installed with:
sudo apt install realmd
ouakil@M-2300859:~$

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

Which output do you receive for
sudo apt update

For installing the realmd package (with the realm command), you have to transfer the file
https://launchpad.net/ubuntu/+archive/primary/+files/realmd_0.17.1-3build2_amd64.deb
to your system and install it with dpkg -i ...

This however will probably need some dependent packages installed, I guess at least
https://launchpad.net/ubuntu/+archive/primary/+files/libkrb5-3_1.20.1-6ubuntu2.2_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libkrb5support0_1.20.1-6ubuntu2.2_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libk5crypto3_1.20.1-6ubuntu2.2_amd64.deb

What output do you receive for "dpkg -i *.deb"?

Revision history for this message
Launchpad Janitor (janitor) said :
#29

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Debbih Farouk (farok76) said :
#30

ouakil@M-2300859:/media/ouakil/507B-3C2D$ dpkg -i *.deb
dpkg: error: requested operation requires superuser privilege

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

You need to start dpkg with admin privileges.
sudo dpkg -i *.deb

Revision history for this message
Debbih Farouk (farok76) said :
#32

ouakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg -i *.deb
[sudo] password for ouakil:
(Reading database ... 170069 files and directories currently installed.)
Preparing to unpack libk5crypto3_1.20.1-6ubuntu2.2_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.20.1-6ubuntu2.2) over (1.20.1-6ubuntu2.1) ...
Preparing to unpack libkrb5-3_1.20.1-6ubuntu2.2_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.20.1-6ubuntu2.2) over (1.20.1-6ubuntu2.1) ...
Preparing to unpack libkrb5support0_1.20.1-6ubuntu2.2_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.20.1-6ubuntu2.2) over (1.20.1-6ubuntu2.1) ...
Selecting previously unselected package realmd.
Preparing to unpack realmd_0.17.1-3build2_amd64.deb ...
Unpacking realmd (0.17.1-3build2) ...
Setting up libkrb5support0:amd64 (1.20.1-6ubuntu2.2) ...
Setting up libk5crypto3:amd64 (1.20.1-6ubuntu2.2) ...
Setting up libkrb5-3:amd64 (1.20.1-6ubuntu2.2) ...
Setting up realmd (0.17.1-3build2) ...
realmd.service is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
Processing triggers for man-db (2.12.0-4build2) ...
ouakil@M-2300859:/media/ouakil/507B-3C2D$ sudo apt update
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Err:2 http://archive.ubuntu.com/ubuntu noble InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:1 http://security.ubuntu.com/ubuntu noble-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/noble-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead

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

It seems that you now have the realmd package successfully installed. Now try using it to join the domain.

What output do you receive for the command
realm discover al-mouradia.dz

Revision history for this message
Debbih Farouk (farok76) said :
#34

ouakil@M-2300859:/media/ouakil/507B-3C2D$ realm discover al-mouradia.dz
realm: No such realm found: al-mouradia.dz

Revision history for this message
Debbih Farouk (farok76) said :
#35

I tried this command too
uakil@M-2300859:/media/ouakil/507B-3C2D$ sudo apt install realmd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
realmd is already the newest version (0.17.1-3build2).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libatomic1 : Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is to be installed
 libgcc-s1 : Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is to be installed
 libgomp1 : Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is to be installed
 libgssapi-krb5-2 : Depends: libkrb5-3 (= 1.20.1-6ubuntu2.1) but 1.20.1-6ubuntu2.2 is to be installed
                    Depends: libkrb5support0 (= 1.20.1-6ubuntu2.1) but 1.20.1-6ubuntu2.2 is to be installed
 libstdc++6 : Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)

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

Is the system connected to the local network (via cable or WLAN)?
Do you have an IP address?
What output do you receive for
realm discover
realm discover -a

Revision history for this message
Debbih Farouk (farok76) said :
#37

ouakil@M-2300859:~$ realm discover -a
AL-MOURADIA.DZ
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: AL-MOURADIA.DZ
  configured: no
  server-software: active-directory
  client-software: sssd
  required-package: sssd-tools
  required-package: sssd
  required-package: libnss-sss
  required-package: libpam-sss
  required-package: adcli
  required-package: samba-common-bin
AL-MOURADIA.DZ
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: al-mouradia.dz
  configured: no
  server-software: active-directory
  client-software: winbind
  required-package: libnss-winbind
  required-package: winbind
  required-package: libpam-winbind
  required-package: samba-common-bin
al-mouradia.dz
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: al-mouradia.dz
  configured: no
ouakil@M-2300859:~$

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

This looks good, the domain is found. Now try joining it.
realm join
etc.

Revision history for this message
Debbih Farouk (farok76) said :
#39

ouakil@M-2300859:~$ realm join al-mouradia.dz
Password for Administrator:
See: journalctl REALMD_OPERATION=r4414867.212183
realm: Couldn't join realm: The following packages have unmet dependencies:
  libgomp1: Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed
  libgssapi-krb5-2: Depends: libkrb5-3 (= 1.20.1-6ubuntu2.1) but 1.20.1-6ubuntu2.2 is installed
                    Depends: libkrb5support0 (= 1.20.1-6ubuntu2.1) but 1.20.1-6ubuntu2.2 is installed
  libstdc++6: Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed
  libatomic1: Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed
  libgcc-s1: Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed

ouakil@M-2300859:~$

Revision history for this message
Debbih Farouk (farok76) said :
#40

I've got an admin password authentication without getting my active directory Username and password

I don't know if I'm connected to the active directory
 can I enter to the server like Windows "\\al-mouradia.dz" to confirm that I'm connected

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

See the man pages for the realm command.
You probably have to add the "--user=yourusername" option and eventually some other options as well.

Revision history for this message
Debbih Farouk (farok76) said :
#42

ouakil@M-2300859:~$ sudo realm join -U f.debbih Al-mouradia.dz
Password for f.debbih:
See: journalctl REALMD_OPERATION=r4486446.217750
realm: Couldn't join realm: The following packages have unmet dependencies:
  libgomp1: Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed
  libgssapi-krb5-2: Depends: libkrb5-3 (= 1.20.1-6ubuntu2.1) but 1.20.1-6ubuntu2.2 is installed
                    Depends: libkrb5support0 (= 1.20.1-6ubuntu2.1) but 1.20.1-6ubuntu2.2 is installed
  libstdc++6: Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed
  libatomic1: Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed
  libgcc-s1: Depends: gcc-14-base (= 14-20240412-0ubuntu1) but 14.2.0-4ubuntu2~24.04 is installed

ouakil@M-2300859:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#43
Revision history for this message
Debbih Farouk (farok76) said :
#44

ouakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg -i *.deb
[sudo] password for ouakil:
(Reading database ... 170120 files and directories currently installed.)
Preparing to unpack libatomic1_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libatomic1:amd64 (14.2.0-4ubuntu2~24.04) over (14-20240412-0ubuntu1) ...
Preparing to unpack libgcc-s1_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libgcc-s1:amd64 (14.2.0-4ubuntu2~24.04) over (14-20240412-0ubuntu1) ...
Preparing to unpack libgomp1_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libgomp1:amd64 (14.2.0-4ubuntu2~24.04) over (14-20240412-0ubuntu1) ...
Preparing to unpack libgssapi-krb5-2_1.20.1-6ubuntu2.2_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.20.1-6ubuntu2.2) over (1.20.1-6ubuntu2.1) ...
Preparing to unpack libstdc++6_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libstdc++6:amd64 (14.2.0-4ubuntu2~24.04) over (14-20240412-0ubuntu1) ...
Setting up libatomic1:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up libgcc-s1:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up libgomp1:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up libgssapi-krb5-2:amd64 (1.20.1-6ubuntu2.2) ...
Setting up libstdc++6:amd64 (14.2.0-4ubuntu2~24.04) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
ouakil@M-2300859:/media/ouakil/507B-3C2D$ cd..
cd..: command not found
ouakil@M-2300859:/media/ouakil/507B-3C2D$ cd
ouakil@M-2300859:~$ sudo realm join -U f.debbih al-mouradia.dz
Password for f.debbih:
See: journalctl REALMD_OPERATION=r4491897.218472
realm: Couldn't join realm: The following packages are not available for installation: sssd-tools adcli
ouakil@M-2300859:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#45
Revision history for this message
Debbih Farouk (farok76) said :
#46

uakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg -i *.deb
[sudo] password for ouakil:
Selecting previously unselected package adcli.
(Reading database ... 170120 files and directories currently installed.)
Preparing to unpack adcli_0.9.2-1ubuntu2_amd64.deb ...
Unpacking adcli (0.9.2-1ubuntu2) ...
Selecting previously unselected package sssd-tools.
Preparing to unpack sssd-tools_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking sssd-tools (2.9.4-1.1ubuntu6.2) ...
Setting up adcli (0.9.2-1ubuntu2) ...
dpkg: dependency problems prevent configuration of sssd-tools:
 sssd-tools depends on sssd-common (= 2.9.4-1.1ubuntu6.2); however:
  Version of sssd-common on system is 2.9.4-1.1ubuntu6.1.

dpkg: error processing package sssd-tools (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.12.0-4build2) ...
Errors were encountered while processing:
ouakil@M-2300859:/media/ouakil/507B-3C2D$ sudo realm join -U f.debbih Al-mouradia.dz
realm: No such realm found
ouakil@M-2300859:/media/ouakil/507B-3C2D$ cd
ouakil@M-2300859:~$ sudo realm join f.debbih al-mouradia.dz
realm: Specify one realm to join
ouakil@M-2300859:~$

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

It seems you need a different version of another package

https://launchpad.net/ubuntu/+archive/primary/+files/sssd-common_2.9.4-1.1ubuntu6.2_amd64.deb

"realm: No such realm found"
The "realm discover" command shows the realm name in capital characters, so you should use "AL-MOURADIA.DZ" for the realm parameter in the join command.

Revision history for this message
Debbih Farouk (farok76) said :
#48

uakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg -i *.deb
[sudo] password for ouakil:
(Reading database ... 170171 files and directories currently installed.)
Preparing to unpack adcli_0.9.2-1ubuntu2_amd64.deb ...
Unpacking adcli (0.9.2-1ubuntu2) over (0.9.2-1ubuntu2) ...
Preparing to unpack sssd-common_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking sssd-common (2.9.4-1.1ubuntu6.2) over (2.9.4-1.1ubuntu6.1) ...
Preparing to unpack sssd-tools_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking sssd-tools (2.9.4-1.1ubuntu6.2) over (2.9.4-1.1ubuntu6.2) ...
Setting up adcli (0.9.2-1ubuntu2) ...
dpkg: dependency problems prevent configuration of sssd-common:
 sssd-common depends on libnss-sss (= 2.9.4-1.1ubuntu6.2); however:
  Version of libnss-sss:amd64 on system is 2.9.4-1.1ubuntu6.1.
 sssd-common depends on libpam-sss (= 2.9.4-1.1ubuntu6.2); however:
  Version of libpam-sss:amd64 on system is 2.9.4-1.1ubuntu6.1.

dpkg: error processing package sssd-common (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sssd-tools:
 sssd-tools depends on sssd-common (= 2.9.4-1.1ubuntu6.2); however:
  Package sssd-common is not configured yet.

dpkg: error processing package sssd-tools (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.12.0-4build2) ...
Errors were encountered while processing:
 sssd-common
 sssd-tools
ouakil@M-2300859:/media/ouakil/507B-3C2D$ sudo realm join -U f.febbih AL-MOURADIA.DZ
Password for f.febbih:
 * Installing necessary packages: sssd-tools
See: journalctl REALMD_OPERATION=r4733106.229741
realm: Couldn't join realm: The following packages have unmet dependencies:
  sssd-common: Depends: libnss-sss (= 2.9.4-1.1ubuntu6.2) but 2.9.4-1.1ubuntu6.1 is to be installed
               Depends: libpam-sss (= 2.9.4-1.1ubuntu6.2) but 2.9.4-1.1ubuntu6.1 is to be installed

ouakil@M-2300859:/media/ouakil/507B-3C2D$

Revision history for this message
Manfred Hampl (m-hampl) said :
#49
Revision history for this message
Debbih Farouk (farok76) said :
#50

ouakil@M-2300859:/media/ouakil/507B-3C2D$ realm join -U f.debbih AL-MOURADIA.DZ
Password for f.debbih:
 * Installing necessary packages: sssd-tools
See: journalctl REALMD_OPERATION=r4753738.231386
realm: Couldn't join realm: Failed to join the domain
ouakil@M-2300859:/media/ouakil/507B-3C2D$

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

Ok. It seems that all packages are now installed. The error must be something else.

What output do you receive for the diagnostic command that is shown in the message?

journalctl REALMD_OPERATION=r4753738.231386

Revision history for this message
Debbih Farouk (farok76) said :
#52

uakil@M-2300859:~$ sudo realm join -U f.debbih AL-MOURADIA.DZ
Password for f.debbih:
See: journalctl REALMD_OPERATION=r668.3477
realm: Couldn't join realm: The following packages are not available for installation: sssd
ouakil@M-2300859:~$ sudo realmd join -U f.debbih AL-MOURADIA.DZ
sudo: realmd: command not found
ouakil@M-2300859:~$ sudo realm join -U f.debbih AL-MOURADIA.DZ
Password for f.debbih:
See: journalctl REALMD_OPERATION=r756.3510
realm: Couldn't join realm: The following packages are not available for installation: sssd
ouakil@M-2300859:~$ sudo realm join -U f.debbih AL-MOURADIA.DZ
Password for f.debbih:
See: journalctl REALMD_OPERATION=r783.3527
realm: Couldn't join realm: The following packages are not available for installation: sssd
ouakil@M-2300859:~$ sudo realm join -U f.debbih AL-MOURADIA.DZ
Password for f.debbih:
See: journalctl REALMD_OPERATION=r796.3541
realm: Couldn't join realm: The following packages are not available for installation: sssd
ouakil@M-2300859:~$

Revision history for this message
Debbih Farouk (farok76) said :
#53

I noticed that each time I tape realm command I get a different Operation code even If I write a wrong password of my Active directory account ..

Should I install another version of Ubuntu or update packages through internet connection ?

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

"The following packages are not available for installation: sssd"

You probably also need to install https://launchpad.net/ubuntu/+archive/primary/+files/sssd_2.9.4-1.1ubuntu6.2_amd64.deb

The numbers in the message are a time code that helps identifying all messages that belong to a certain event.

Revision history for this message
Debbih Farouk (farok76) said :
#55

uakil@M-2300859:~$ sudo realm join -U f.debbih AL-MOURADIA.DZ
Password for f.debbih:
See: journalctl REALMD_OPERATION=r668.3477
realm: Couldn't join realm: The following packages are not available for installation: sssd
ouakil@M-2300859:~$ sudo realmd join -U f.debbih AL-MOURADIA.DZ
sudo: realmd: command not found
ouakil@M-2300859:~$ sudo realm join -U f.debbih AL-MOURADIA.DZ
Password for f.debbih:
See: journalctl REALMD_OPERATION=r756.3510
realm: Couldn't join realm: The following packages are not available for installation: sssd
ouakil@M-2300859:~$ sudo realm join -U f.debbih AL-MOURADIA.DZ
Password for f.debbih:
See: journalctl REALMD_OPERATION=r783.3527
realm: Couldn't join realm: The following packages are not available for installation: sssd
ouakil@M-2300859:~$ sudo realm join -U f.debbih AL-MOURADIA.DZ
Password for f.debbih:
See: journalctl REALMD_OPERATION=r796.3541
realm: Couldn't join realm: The following packages are not available for installation: sssd
ouakil@M-2300859:~$

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

Did you install the sssd package?

Revision history for this message
Debbih Farouk (farok76) said :
#57

I installed only the packages (*.deb) you gave me since the beginning

Revision history for this message
Debbih Farouk (farok76) said :
#58
Revision history for this message
Manfred Hampl (m-hampl) said :
#59

I mentioned the sssd package in comment #54

Revision history for this message
Debbih Farouk (farok76) said :
#60

yah I did

Revision history for this message
Debbih Farouk (farok76) said :
#61

uakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg -i *.deb
[sudo] password for ouakil:
(Reading database ... 170128 files and directories currently installed.)
Preparing to unpack sssd_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking sssd (2.9.4-1.1ubuntu6.2) over (2.9.4-1.1ubuntu6.2) ...
dpkg: dependency problems prevent configuration of sssd:
 sssd depends on python3-sss (= 2.9.4-1.1ubuntu6.2); however:
  Version of python3-sss on system is 2.9.4-1.1ubuntu6.1.
 sssd depends on sssd-ad (= 2.9.4-1.1ubuntu6.2); however:
  Package sssd-ad is not installed.
 sssd depends on sssd-ipa (= 2.9.4-1.1ubuntu6.2); however:
  Package sssd-ipa is not installed.
 sssd depends on sssd-krb5 (= 2.9.4-1.1ubuntu6.2); however:
  Package sssd-krb5 is not installed.
 sssd depends on sssd-ldap (= 2.9.4-1.1ubuntu6.2); however:
  Package sssd-ldap is not installed.
 sssd depends on sssd-proxy (= 2.9.4-1.1ubuntu6.2); however:
  Package sssd-proxy is not installed.

dpkg: error processing package sssd (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 sssd
ouakil@M-2300859:/media/ouakil/507B-3C2D$

Revision history for this message
Manfred Hampl (m-hampl) said :
#62
Revision history for this message
Debbih Farouk (farok76) said :
#63

uakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg -i *.deb
[sudo] password for ouakil:
(Reading database ... 170128 files and directories currently installed.)
Preparing to unpack python3-sss_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking python3-sss (2.9.4-1.1ubuntu6.2) over (2.9.4-1.1ubuntu6.1) ...
Selecting previously unselected package sssd-ad.
Preparing to unpack sssd-ad_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking sssd-ad (2.9.4-1.1ubuntu6.2) ...
Selecting previously unselected package sssd-ad-common.
Preparing to unpack sssd-ad-common_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking sssd-ad-common (2.9.4-1.1ubuntu6.2) ...
Selecting previously unselected package sssd-ipa.
Preparing to unpack sssd-ipa_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking sssd-ipa (2.9.4-1.1ubuntu6.2) ...
Selecting previously unselected package sssd-krb5.
Preparing to unpack sssd-krb5_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking sssd-krb5 (2.9.4-1.1ubuntu6.2) ...
Selecting previously unselected package sssd-krb5-common.
Preparing to unpack sssd-krb5-common_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking sssd-krb5-common (2.9.4-1.1ubuntu6.2) ...
Selecting previously unselected package sssd-ldap.
Preparing to unpack sssd-ldap_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking sssd-ldap (2.9.4-1.1ubuntu6.2) ...
Selecting previously unselected package sssd-proxy.
Preparing to unpack sssd-proxy_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking sssd-proxy (2.9.4-1.1ubuntu6.2) ...
Setting up python3-sss (2.9.4-1.1ubuntu6.2) ...
dpkg: dependency problems prevent configuration of sssd-ad:
 sssd-ad depends on libsss-idmap0 (= 2.9.4-1.1ubuntu6.2); however:
  Version of libsss-idmap0 on system is 2.9.4-1.1ubuntu6.1.

dpkg: error processing package sssd-ad (--install):
 dependency problems - leaving unconfigured
Setting up sssd-ad-common (2.9.4-1.1ubuntu6.2) ...
sssd-pac.service is a disabled or a static unit not running, not starting it.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 148.
dpkg: dependency problems prevent configuration of sssd-ipa:
 sssd-ipa depends on libipa-hbac0t64 (= 2.9.4-1.1ubuntu6.2); however:
  Version of libipa-hbac0t64 on system is 2.9.4-1.1ubuntu6.1.
 sssd-ipa depends on libsss-idmap0 (= 2.9.4-1.1ubuntu6.2); however:
  Version of libsss-idmap0 on system is 2.9.4-1.1ubuntu6.1.

dpkg: error processing package sssd-ipa (--install):
 dependency problems - leaving unconfigured
Setting up sssd-krb5-common (2.9.4-1.1ubuntu6.2) ...
dpkg: dependency problems prevent configuration of sssd-ldap:
 sssd-ldap depends on libsss-idmap0 (= 2.9.4-1.1ubuntu6.2); however:
  Version of libsss-idmap0 on system is 2.9.4-1.1ubuntu6.1.

dpkg: error processing package sssd-ldap (--install):
 dependency problems - leaving unconfigured
Setting up sssd-proxy (2.9.4-1.1ubuntu6.2) ...
Setting up sssd-krb5 (2.9.4-1.1ubuntu6.2) ...
Processing triggers for man-db (2.12.0-4build2) ...
Errors were encountered while processing:
 sssd-ad
 sssd-ipa
 sssd-ldap
ouakil@M-2300859:/media/ouakil/507B-3C2D$ cd
ouakil@M-2300859:~$ realm join -U F.debbih AL-MOURADIA.DZ
realm: No such realm found
ouakil@M-2300859:~$ sudo realm join -U f.debbih AL-MOURADIA.DZ
realm: No such realm found
ouakil@M-2300859:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#64
Revision history for this message
Debbih Farouk (farok76) said :
#65

Ouakil@M-2300859:/media/ouakil/507B-3C2D$ sudo dpkg -i *.deb
[sudo] password for ouakil:
(Reading database ... 170171 files and directories currently installed.)
Preparing to unpack libipa-hbac0t64_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking libipa-hbac0t64 (2.9.4-1.1ubuntu6.2) over (2.9.4-1.1ubuntu6.1) ...
Preparing to unpack libsss-idmap0_2.9.4-1.1ubuntu6.2_amd64.deb ...
Unpacking libsss-idmap0 (2.9.4-1.1ubuntu6.2) over (2.9.4-1.1ubuntu6.1) ...
Setting up libipa-hbac0t64 (2.9.4-1.1ubuntu6.2) ...
Setting up libsss-idmap0 (2.9.4-1.1ubuntu6.2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
ouakil@M-2300859:/media/ouakil/507B-3C2D$ realm join -U f.debbih AL-MOURADIA.DZ
realm: No such realm found
ouakil@M-2300859:/media/ouakil/507B-3C2D$ sudo realm join -U f.debbih AL-MOURADIA.DZ
realm: No such realm found
ouakil@M-2300859:/media/ouakil/507B-3C2D$ cd
ouakil@M-2300859:~$ realm join -U f.debbih AL-MOURADIA.DZ
realm: No such realm found
ouakil@M-2300859:~$

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

If you see the message "No such realm found", then the name of the realm that has been given in the command was wrong.
Try again to list the available realm(s) with the command
realm discover

Revision history for this message
Debbih Farouk (farok76) said :
#67

ouakil@M-2300859:~$ realm discover
realm: No default realm discovered

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

Is your system connected to the network?

Try again with

realm discover -a

Revision history for this message
Debbih Farouk (farok76) said :
#69

Ouakil@M-2300859:~$ realm discover -a
AL-MOURADIA.DZ
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: AL-MOURADIA.DZ
  configured: no
  server-software: active-directory
  client-software: sssd
  required-package: sssd-tools
  required-package: sssd
  required-package: libnss-sss
  required-package: libpam-sss
  required-package: adcli
  required-package: samba-common-bin
AL-MOURADIA.DZ
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: al-mouradia.dz
  configured: no
  server-software: active-directory
  client-software: winbind
  required-package: libnss-winbind
  required-package: winbind
  required-package: libpam-winbind
  required-package: samba-common-bin
al-mouradia.dz
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: al-mouradia.dz
  configured: no
ouakil@M-2300859:~$ realm join -U f.debbih Al-MOURADIA.DZ
Password for f.debbih:
 * Installing necessary packages: sssd
ouakil@M-2300859:~$

Revision history for this message
Debbih Farouk (farok76) said :
#70

Is that means I'm connected to Active directory ?

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

There is no error message at the last command any more, so I assume that you have finally joined the AD domain.

The command
realm list
should confirm that.

Revision history for this message
Debbih Farouk (farok76) said :
#72

uakil@M-2300859:~$ sudo realm list
[sudo] password for ouakil:
AL-MOURADIA.DZ
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: al-mouradia.dz
  configured: kerberos-member
  server-software: active-directory
  client-software: sssd
  required-package: sssd-tools
  required-package: sssd
  required-package: libnss-sss
  required-package: libpam-sss
  required-package: adcli
  required-package: samba-common-bin
  login-formats: %<email address hidden>
  login-policy: allow-realm-logins
ouakil@M-2300859:~$

Revision history for this message
Debbih Farouk (farok76) said :
#73

I think that the machine is connected to active directory but I can not access to my acount
User name : <email address hidden>
Password : my AD password

so after 2 or 3 minutes of connecting ring I get the message
 "Sorry, password authentication didn't work. Please try again"

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

What exactly do you want to do?
What do you mean with "access to my acount"

Are you already able to access the internet from your Ubuntu system?

Revision history for this message
Debbih Farouk (farok76) said :
#75

I have to access to my acount Active Directory (<email address hidden>) but I can not

Revision history for this message
Debbih Farouk (farok76) said :
#76

I get the message (Sorry, password authentication didn't work. Please try again)

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

In what sense do you want to "access the account"?
Send an e-mail to ..., or log in to Ubuntu using that username and password, or ...?

Repeating my question:
Are you already able to access the internet from your Ubuntu system?

Revision history for this message
Debbih Farouk (farok76) said :
#78

I want to access to my AD account inorder to send and recieve Emails, get the internet and other tasks

For your question : no I don't have Internet yet
So I have to login my AD account (<email address hidden>)

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

What we have achieved so far is installing the required software and joining your computer to the domain.

If you want to log in with your AD user-ID, then this is something new.

This requires configuring your system to make that work.
For instructions see e.g. https://documentation.ubuntu.com/server/how-to/sssd/with-active-directory/

Revision history for this message
Debbih Farouk (farok76) said :
#80

I followed the steps given in the link you sent (https://documentation.ubuntu.com/server/how-to/sssd/with-active-directory/)

ouakil@M-2300859:~$ sudo apt install sssd-ad sssd-tools realmd adcli
[sudo] password for ouakil:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
sssd-ad is already the newest version (2.9.4-1.1ubuntu6.2).
sssd-tools is already the newest version (2.9.4-1.1ubuntu6.2).
realmd is already the newest version (0.17.1-3build2).
adcli is already the newest version (0.9.2-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ouakil@M-2300859:~$ sudo realm -v discover AL-MOURADIA.DZ
 * Resolving: _ldap._tcp.al-mouradia.dz
 * Performing LDAP DSE lookup on: 10.31.10.85
 * Successfully discovered: AL-MOURADIA.DZ
AL-MOURADIA.DZ
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: al-mouradia.dz
  configured: kerberos-member
  server-software: active-directory
  client-software: sssd
  required-package: sssd-tools
  required-package: sssd
  required-package: libnss-sss
  required-package: libpam-sss
  required-package: adcli
  required-package: samba-common-bin
  login-formats: %<email address hidden>
  login-policy: allow-realm-logins
al-mouradia.dz
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: al-mouradia.dz
  configured: no
ouakil@M-2300859:~$ sudo realm join AL-MOURADIA.DZ
realm: Already joined to this domain
ouakil@M-2300859:~$ sudo realm join -v AL-MOURADIA.DZ
 * Resolving: _ldap._tcp.al-mouradia.dz
 * Performing LDAP DSE lookup on: 10.31.10.83
 * Performing LDAP DSE lookup on: 10.31.10.84
 * Successfully discovered: AL-MOURADIA.DZ
realm: Already joined to this domain
ouakil@M-2300859:~$ sudo pam-auth-update --enable mkhomedir
ouakil@M-2300859:~$ getent passwd <email address hidden>
<email address hidden>:*:1290808006:1290800513:Debbih Farouk:/<email address hidden>:/bin/bash
ouakil@M-2300859:~$ groups f
groups: ‘f’: no such user
ouakil@M-2300859:~$ groups <email address hidden>
<email address hidden> : utilisa. du <email address hidden> <email address hidden> <email address hidden> <email address hidden> <email address hidden> <email address hidden> <email address hidden> <email address hidden> help <email address hidden> <email address hidden> ws <email address hidden> <email address hidden>
ouakil@M-2300859:~$ sudo login
M-2300859 login: <email address hidden>
Password:

System error
ouakil@M-2300859:~$ sudo login
M-2300859 login: <email address hidden>
Password:

Authentication service cannot retrieve authentication info
ouakil@M-2300859:~$ ssh <email address hidden>
ssh: connect to host al-mouradia.dz port 22: Connection refused
ouakil@M-2300859:~$

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

Did you check /etc/sssd/sssd.conf for any modification that may be required,?

Revision history for this message
Debbih Farouk (farok76) said :
#82

I opened SSSD.conf in Terminal and I got this ;

[sssd]
domains = AL-MOURADIA.DZ
config_file_version = 2
services = nss, pam

[domain/AL-MOURADIA.DZ]
default_shell = /bin/bash
krb5_store_password_if_offline = True
cache_credentials = True
krb5_realm = AL-MOURADIA.DZ
realmd_tags = manages-system joined-with-adcli
id_provider = ad
fallback_homedir = /home/%u@%d
ad_domain = AL-MOURADIA.DZ
use_fully_qualified_names = True
ldap_id_mapping = True
access_provider = ad

Revision history for this message
Debbih Farouk (farok76) said :
#83

What modifications I have to check ?

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

You should ask the domain administrator of your domain, if there are any special settings required.

There is a "known issue" paragraph in https://documentation.ubuntu.com/server/how-to/sssd/with-active-directory/
I do not know whether this is relevant on your system.

Furthermore I recommend checking the log files on your systems, whether there is any additional information that may help finding the cause for the inability to log in with the AD user-ID.

Revision history for this message
Debbih Farouk (farok76) said :
#85

hello Mr Manfred,
Sorry for my late answer, I tried to find a solution on the net as I tried some solutions but dont work, but I succeeded to join and login with my AD user ID (<email address hidden>) in our second network which is Intranet network called (RIASSA.DZ)

Revision history for this message
Debbih Farouk (farok76) said :
#86

ouakil@M-2300859:~$ realm discover -a
RIASSA.DZ
  type: kerberos
  realm-name: RIASSA.DZ
  domain-name: RIASSA.DZ
  configured: no
  server-software: active-directory
  client-software: sssd
  required-package: sssd-tools
  required-package: sssd
  required-package: libnss-sss
  required-package: libpam-sss
  required-package: adcli
  required-package: samba-common-bin
RIASSA.DZ
  type: kerberos
  realm-name: RIASSA.DZ
  domain-name: riassa.dz
  configured: no
  server-software: active-directory
  client-software: winbind
  required-package: libnss-winbind
  required-package: winbind
  required-package: libpam-winbind
  required-package: samba-common-bin
riassa.dz
  type: kerberos
  realm-name: RIASSA.DZ
  domain-name: riassa.dz
  configured: no
ouakil@M-2300859:~$ realm join -U <email address hidden>
Password for <email address hidden>:
ouakil@M-2300859:~$ sudo login
[sudo] password for ouakil:
Sorry, try again.
[sudo] password for ouakil:
M-2300859 login: <email address hidden>
Password:
Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-41-generic x86_64)

 * Documentation: https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support: https://ubuntu.com/pro

Expanded Security Maintenance for Applications is not enabled.

0 updates can be applied immediately.

Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status

The list of available updates is more than a week old.
To check for new updates run: sudo apt update
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings

<email address hidden>@M-2300859:~$

<email address hidden>@M-2300859:~$ realm leave -U <email address hidden>
Password for <email address hidden>:
<email address hidden>@M-2300859:~$

Revision history for this message
Debbih Farouk (farok76) said :
#87

but when I return to our Internet Network (Al-mouradia.dz) I get this :

ouakil@M-2300859:~$ realm discover -a
AL-MOURADIA.DZ
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: AL-MOURADIA.DZ
  configured: no
  server-software: active-directory
  client-software: sssd
  required-package: sssd-tools
  required-package: sssd
  required-package: libnss-sss
  required-package: libpam-sss
  required-package: adcli
  required-package: samba-common-bin
AL-MOURADIA.DZ
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: al-mouradia.dz
  configured: no
  server-software: active-directory
  client-software: winbind
  required-package: libnss-winbind
  required-package: winbind
  required-package: libpam-winbind
  required-package: samba-common-bin
al-mouradia.dz
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: al-mouradia.dz
  configured: no
ouakil@M-2300859:~$ realm join -U <email address hidden>
Password for <email address hidden>:
ouakil@M-2300859:~$ sudo login
[sudo] password for ouakil:
M-2300859 login: <email address hidden>
Password:

      -((((Waiting takes approximately 02 minutes ))))-

System error
ouakil@M-2300859:~$ sudo login
M-2300859 login: <email address hidden>
Password:

     -((((Waiting takes approximately 02 minutes ))))-

Authentication service cannot retrieve authentication info
ouakil@M-2300859:~$

Revision history for this message
Debbih Farouk (farok76) said :
#88

but when I return to our Internet Network (Al-mouradia.dz) I get this :

ouakil@M-2300859:~$ realm discover -a
AL-MOURADIA.DZ
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: AL-MOURADIA.DZ
  configured: no
  server-software: active-directory
  client-software: sssd
  required-package: sssd-tools
  required-package: sssd
  required-package: libnss-sss
  required-package: libpam-sss
  required-package: adcli
  required-package: samba-common-bin
AL-MOURADIA.DZ
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: al-mouradia.dz
  configured: no
  server-software: active-directory
  client-software: winbind
  required-package: libnss-winbind
  required-package: winbind
  required-package: libpam-winbind
  required-package: samba-common-bin
al-mouradia.dz
  type: kerberos
  realm-name: AL-MOURADIA.DZ
  domain-name: al-mouradia.dz
  configured: no
ouakil@M-2300859:~$ realm join -U <email address hidden>
Password for <email address hidden>:
ouakil@M-2300859:~$ sudo login
[sudo] password for ouakil:
M-2300859 login: <email address hidden>
Password:

      -((((Waiting takes approximately 02 minutes ))))-

System error
ouakil@M-2300859:~$ sudo login
M-2300859 login: <email address hidden>
Password:

     -((((Waiting takes approximately 02 minutes ))))-

Authentication service cannot retrieve authentication info
ouakil@M-2300859:~$

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

I am sorry, but I cannot help further. I do not have experience with AD domains myself.

Just one remark:
If logging in to one domain works, but not the other one, then this can be caused by some different settings on the AD domains and can be independent from the Ubuntu system as such.
Can you investigate with the domain admins of AL-MOURADIA.DZ whether they see any error messages on their side when your login attempt fails?
Can you check whether there are any different settings in the domain parameters between the two domains?

Can you help with this problem?

Provide an answer of your own, or ask Debbih Farouk for more information if necessary.

To post a message you must log in.