Post History
I had mentioned in the comment, @Canina I had updated my system also. But, actually I had updated my system before making changes to /etc/apt/sources.list. You have to work as a root user...
Answer
#3: Post edited
- I had mentioned in [the comment](https://linux.codidact.com/comments/thread/3384#comment-11119),
- >@Canina I had updated my system also.
- But, actually I had updated my system before making changes to `/etc/apt/sources.list`.
- <hr/>
- You have to work as a root user, so use `sudo` or, if your user is not in the `sudoers` file yet, use `su`.
- At first, you have make some changes to `/etc/apt/sources.list`. You have to add following line to every line which starts with `deb` (in `/etc/apt/sources`).
- ```bash
- contrib non-free
- ```
- Then, you have to update your system.
- ```
- apt-get update && apt-get upgrade
- ```
- Then, install `firmware-iwlwifi`.
- ```
- apt-get install firmware-iwlwifi
- ```
Then, you will have to reboot your PC.
- I had mentioned in [the comment](https://linux.codidact.com/comments/thread/3384#comment-11119),
- >@Canina I had updated my system also.
- But, actually I had updated my system before making changes to `/etc/apt/sources.list`.
- <hr/>
- You have to work as a root user, so use `sudo` or, if your user is not in the `sudoers` file yet, use `su`.
- At first, you have make some changes to `/etc/apt/sources.list`. You have to add following line to every line which starts with `deb` (in `/etc/apt/sources`).
- ```bash
- contrib non-free
- ```
- Then, you have to update your system.
- ```
- apt-get update && apt-get upgrade
- ```
- Then, install `firmware-iwlwifi`.
- ```
- apt-get install firmware-iwlwifi
- ```
- Then, you will have to reboot your PC.
- <hr/>
- There's some differences between `su` and `su -`.
- `su -` invokes a login shell after switching the user. A login shell resets most environment variables, providing a clean base.
- `su` just switches the user, providing a normal shell with an environment nearly the same as with the old user.
- So, you should use `su -` instead of `su`.
#2: Post edited
- I had mentioned in [the comment](https://linux.codidact.com/comments/thread/3384#comment-11119),
- >@Canina I had updated my system also.
- But, actually I had updated my system before making changes to `/etc/apt/sources.list`.
- <hr/>
- At first, you have make some changes to `/etc/apt/sources.list`. You have to add following line to every line which starts with `deb` (in `/etc/apt/sources`).
- ```bash
- contrib non-free
- ```
- Then, you have to update your system.
- ```
sudo apt-get update && apt-get upgrade- ```
Then, install `firmware-iwlwifi`. (Your default user won't be sudoers, that's why you have to work as a root user `su`)- ```
- apt-get install firmware-iwlwifi
- ```
- Then, you will have to reboot your PC.
- I had mentioned in [the comment](https://linux.codidact.com/comments/thread/3384#comment-11119),
- >@Canina I had updated my system also.
- But, actually I had updated my system before making changes to `/etc/apt/sources.list`.
- <hr/>
- You have to work as a root user, so use `sudo` or, if your user is not in the `sudoers` file yet, use `su`.
- At first, you have make some changes to `/etc/apt/sources.list`. You have to add following line to every line which starts with `deb` (in `/etc/apt/sources`).
- ```bash
- contrib non-free
- ```
- Then, you have to update your system.
- ```
- apt-get update && apt-get upgrade
- ```
- Then, install `firmware-iwlwifi`.
- ```
- apt-get install firmware-iwlwifi
- ```
- Then, you will have to reboot your PC.
#1: Initial revision
I had mentioned in [the comment](https://linux.codidact.com/comments/thread/3384#comment-11119), >@Canina I had updated my system also. But, actually I had updated my system before making changes to `/etc/apt/sources.list`. <hr/> At first, you have make some changes to `/etc/apt/sources.list`. You have to add following line to every line which starts with `deb` (in `/etc/apt/sources`). ```bash contrib non-free ``` Then, you have to update your system. ``` sudo apt-get update && apt-get upgrade ``` Then, install `firmware-iwlwifi`. (Your default user won't be sudoers, that's why you have to work as a root user `su`) ``` apt-get install firmware-iwlwifi ``` Then, you will have to reboot your PC.