printing – Brother printer has stopped working with 21.10

Run the following command to install the drivers from the default Ubuntu multiverse repository. The repository should be enabled by default but just in case, go ahead and enable the repo and then install the packages using the following commands.

sudo add-apt-repository multiverse
sudo apt update
sudo apt install printer-driver-brlaser brother-cups-wrapper-common brother-cups-wrapper-extra brother-cups-wrapper-laser brother-cups-wrapper-laser1 brother-lpr-drivers-common brother-lpr-drivers-extra brother-lpr-drivers-laser brother-lpr-drivers-laser1

I got this list of packages by running the following command:

 apt-cache search brother | grep "common|extra|laser" | awk '{print $1}'

The first part of the command searches for packages containing “brother”.

The second part greps for common, extra, and laser.

The third part says to print only the first column which is the column with the package names.

To make it a list with single spaces, we can echo the command:

echo $(apt-cache search brother | grep "common|extra|laser" | awk '{print $1}')

or you could just tell apt to install the list:

sudo apt install $(apt-cache search brother | grep "common|extra|laser" | awk '{print $1}')

Although, as always, it is important to always review the list of packages to install/uninstall before accepting the changes.