Linux - Reddit – Telegram
Linux - Reddit
751 subscribers
4.17K photos
207 videos
39.8K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
install uninstall loop

Hi all,

​

I recently got into the world of NAS (ubuntu server).

A lot is running nicely.. PLEX, minecraft, I even ahd a wordpress server running, but it had a small hickup with the MYSQL server, so I uninstalled it..At least, I thought I did.

`Errors were encountered while processing: /tmp/apt-dpkg-install-0TJWYH/06-mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)`

and there it went down hill.

Preparing to unpack .../mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initnoscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb (--unpack):
new mysql-server-8.0 package pre-installation noscript subprocess returned error exit status 1
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_8.0.23-0ubuntu0.20.04.1_all.deb ...
Unpacking mysql-server (8.0.23-0ubuntu0.20.04.1) ...
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@vicsserver:/home/victoroos# sudo mysql_secure_installation
mysql_secure_installation: [ERROR] unknown variable 'default-character-set=utf8mb4'.

Securing the MySQL server deployment. Enter password for user root: Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) root@vicsserver:/home/victoroos# ^C root@vicsserver:/home/victoroos# sudo service mysql start
failed to start mysql.service: Unit mysql.service not found.

I already tried these steps:

stopping or starting:

Stopping mysql (via systemctl): mysql.serviceFailed to stop mysql.service: Unit mysql.service not loaded. failed! and When I start: Starting mysql (via systemctl): mysql.serviceFailed to start mysql.service: Unit mysql.service not found. failed!

f install:

victoroos@vicsserver:~$ sudo apt -f install [sudo] password for victoroos: Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libmysqlclient21 libsnappy1v5 libterm-readkey-perl mariadb-common php7.4-mysql Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: mysql-server-8.0 Suggested packages: mailx tinyca The following NEW packages will be installed: mysql-server-8.0 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed.

Now, I can't install anything (I tried to update my plex)

victoroos@vicsserver:~$ sudo apt-get purge mysql-common mysql-server-8.0
[sudo] password for victoroos:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mysql-server-8.0' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mariadb-common : Depends: mysql-common (>= 5.6.25) but it is not going to be installed
mysql-client-8.0 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mysql-server : Depends: mysql-server-8.0 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
victoroos@vicsserver:~$ ^C
victoroos@vicsserver:~$ sudo apt --fix-broken
E: Command line option --fix-broken is not understood in combination with the other options
victoroos@vicsserver:~$ sudo apt-get purge mysql-common mysql-server*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'mysql-server-5.5' for glob 'mysql-server*'
Note, selecting 'mysql-server-5.6' for glob 'mysql-server*'
Note, selecting 'mysql-server-5.7' for glob 'mysql-server*'
Note, selecting 'mysql-server' for glob 'mysql-server*'
Note, selecting 'mysql-server-8.0' for glob 'mysql-server*'
Note, selecting 'mysql-server-core-5.5' for glob 'mysql-server*'
Note, selecting 'mysql-server-core-5.6' for glob 'mysql-server*'
Note, selecting 'mysql-server-core-5.7' for glob 'mysql-server*'
Note, selecting 'mysql-server-core-8.0' for glob 'mysql-server*'
Package 'mysql-server-5.5' is not installed, so not removed
Package 'mysql-server-5.7' is not installed, so not removed
Package 'mysql-server-core-5.7' is not installed, so not removed
Package 'mysql-server-core-5.5' is not installed, so not removed
Package 'mysql-server-core-5.6' is not installed, so not removed
Package 'mysql-server-5.6' is not installed, so not removed
Package 'mysql-server-8.0' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mariadb-common : Depends: mysql-common (>= 5.6.25) but it is not going to be installed
mysql-client-8.0 : Depends: mysql-common (>= 5.5) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
victoroos@vicsserver:~$ sudo apt-get purge mysql-common mysql-common*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'mysql-common-5.6' for glob 'mysql-common*'
Note, selecting 'mysql-common' for glob 'mysql-common*'
Note, selecting 'mysql-common' instead of 'mysql-common-5.6'
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mariadb-common : Depends: mysql-common (>= 5.6.25) but it is not going to be installed
mysql-client-8.0 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mysql-server : Depends: mysql-server-8.0 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

​

​

I hope I gave enough insight on what I already tried?

​

cheers

Victor

https://redd.it/lf89vt
@r_linux
What should be used instead of grub loader?

I have been using linux mint for few years but I always get to some hickups. Usually I use it for few months and almost always something in grub loader gets broken(sometimes it's just broken packages and stuff like that but sometimes I lose eletricity and have to repeat everything). Long story short what do you use instead of grub loader?

https://redd.it/lf98le
@r_linux
Name workspaces in Ubuntu 18

When I click the windows key, on the right, I can see my workspace. Thing is, I can't seem to name them like in Windows. Is it possible to easily name & view workspaces, so that when I go to the workspaces, I can see the name I gave to each one?

I'm on ubuntu 18.04.

Huge thanks ahead!

https://redd.it/lf9dv4
@r_linux
What’s your way to migrate your data/prefs to a new desktop?

I know you should just be able to migrate your home and all the prefs are stored in dot-files, but that doesn’t always work, for once you also have to have the same programs installed.
You can easily do that by extracting the list of packages installed in the old laptop and then pass that to your package manager, still, it’s kinda of a lot of work.

Is there an application that will paese all my dot-files, installed packages and allow me to choose what to re-install in the new desktop and automatically put the relevant dot-files there?

What about stuff in /etc or some other place in the system, like network-manager stuff (I’ve got heaps of VPN and remmina stuff) and various tools like apache or dnsmasq or whatever I might need and have customized/confed/added user data to it in the past.

I didn’t keep track of everything I did, that’s why I was thinking maybe somebody already did something to do this easily without me having to reinvent the wheel.

What about KDE, I have a number of settings/conf I do (I’m on fedora), what’s your way to migrate these (for this case I believe KDE should manage with the dot-files in my home)

https://redd.it/lfcsbj
@r_linux
TUTORIAL Install Brother old drivers in Raspberry PI with QUEMU (pretty easy)

Hi, just managed to print from my Android device in my old DCP-197C and I want to share it with you

I don't know if I miss something, because I tried it so many times, but I want to write somewhere what I did today, when it finally worked:

INSTALL ALL THE NECESARY STUFF

apt-get install qemu binfmt-support qemu-user-static cups a2ps

ADD ARCHITECTURE

dpkg --add-architecture i386

DOWNLOAD LIBC6 FOR i386 (I found it here)

wget `old.kali.org/kali-security/pool/main/e/eglibc/libc6_2.13-38+deb7u8_i386.deb`

IF YOU TRY TO INSTALL THIS, YOU WILL MESS AROUND WITH APT, SO WE WILL EXTRACT THE DEB AND COPY THESE FILES MANUALLY

>dpkg -x libc6_2.13-38+deb7u8_i386.deb data
>
>sudo cp -r data/lib/* /lib
>
>sudo cp -r data/usr/* /usr
>
>sudo cp -r data/etc/* /etc

RUN THIS AND ADD IT TO BASHRC TO RUN IN EVERY REBOOT

EXTRA_OPTS="-L /lib/i386-linux-gnu"

DOWNLOAD AND INSTALL YOUR DRIVERS - FOR ME:

>wget https://download.brother.com/welcome/dlf005405/dcp197ccupswrapper-1.1.3-1.i386.deb
>
>wget https://download.brother.com/welcome/dlf005403/dcp197clpr-1.1.3-1.i386.deb
>
>sudo dpkg -i dcp197ccupswrapper-1.1.3-1.i386.deb
>
>sudo dpkg -i dcp197clpr-1.1.3-1.i386.deb

https://redd.it/lfaox9
@r_linux
TIL that you can't use microsoft's new python language server on unofficial builds of visual studio code.

Basically the noscript.

Vent ahead

I was trying out VS Code for using the python, but was not able to install Pylance language server. It does not show any error or warning, when you change from the default language server (jedi) it just sits there.

So after digging a little bit I found this.

Not sad just a little disappointed. I mainly use vim with a language server protocol client like coc.nvim but they recently archived coc-python and recommends using coc-pyright. It's alright but the completion is not as good as microsoft's initial language server mpls, can't really complain pyright is a type checker which it does quite well and jedi usually lags a lot on large project and modules.

https://redd.it/lfi9in
@r_linux
How to get static routes and running services remotely for Linux machines?

I need to determine if the Red Hat 7 Linux machines in our environment have static routes specified in the VM?
Also, I need to check the services running on these machines before patching and compare that to services running after reboot and list out the ones that have failed to start after reboot to make post reboot checks easier.


I am very new to Linux and thus need help in creating a noscript that can achieve this.
Please advise how I can do this.

https://redd.it/lfld2w
@r_linux
Lightweight terminal emulator suggestions?

Hello, I hope this doesn't fall under the category of "support question." If it does, let me know and I'll promptly remove.

I've been sort of jumping X11 terminals for a while, going through Konsole, st, and Alacritty to name a notable few.

I like the speed and lightweight feel of terminals like Alacritty and st, but they can't take IBus input methods, which is beginning to become problematic.

Konsole has no such problem, but feels a bit bloated.

So does anyone have lightweight terminal emulator suggestions?

https://redd.it/lfnesj
@r_linux
Tip: Installations on SD cards are like using TAILS

I have a Windows laptop which can't handle the space needed for VMs or Linux dual-boots, or whatever.

So I've started putting full, complete installs of various Linux distros onto SD cards, 64GB and up.

Then I set the BIOS to boot first from the SD card - no card, and it boots Windows

Each distro install I've done successfully detects the Windows bootloader and adds it to grub, so I can still swtich to Windows from it.

So admittedly, I have to reboot to use another OS, unlike a VM, but this laptop boots really fast.

The biggest advantage to me is that I don't have to fuck with Virtualbox - I hate that program.

Once I shutdown the Linux distro, there's no trace of it on my clean Windows machine.

https://redd.it/lfoj6x
@r_linux
Goodbye MacBook Pro, Hello Linux laptop!

After 15+ years of being in the Apple ecosystem, today I ordered my very first Built for Linux laptop from StarLabs! I’m excited yet nervous, it’s like Christmas and now I wait in anticipation for the day it arrives. Sorry for the fluff post but I just wanted to share my excitement with the Linux community.

https://redd.it/lfqgvq
@r_linux
The most readily available text editors aside from VIM.

Hey people! i’m new to Linux. As I’m educating myself more on the os, I see that VI/VIM and Nano appear to be widely available CLI text editors.

However, I’m curious to see of there are others that are as widely distributed and available that are as powerful as VIM and as user friendly as Nano( for us newbs).

So I post the question here. Aside from Nano, and VIM, what are the most widely available CLI and User interface text editors? And what are the most powerful when compared to VIM?

https://redd.it/lfokft
@r_linux
What would make you switch to windows?

There is a milion of arguments behind going to Linux, but there must be some things in Windows playbook that you may find attractive?

In contrast to the question if you don't have an answer for the first one - what is that one thing you would never give up from Linux?

https://redd.it/lfmjxd
@r_linux
Am confused, is this normal?

I (16M) have started coding for about a year now, and it has changed my life, I love it, My favourite activity was always to code something and keep learning a new language in my Ubuntu VM, but when i started coding in ubuntu, i discovered Linux itself, and i love it, i use opensuse in my laptop, and started learning linux (terminal, bash) But I made Bad choices and left this learning habit apart for a couple of months, now i want to go back but i don't feel as excited as in the end, and that scares me because after 8 months of coding and messing vm's for fun, I started thinking programming itself as a career for me but now it doesn't excites me as before, is because i started thinking about it as a career that in the future could give me a job instead of something fun? I really don't know and am a bit lost, any help? :)

https://redd.it/lfkplj
@r_linux
Iptables and ufw

Stupid question. But I suck with iptables and prefer ufw. If there’s rules in iptables but I then go and install ufw and set my own rules. Will ufw override iptables?

So for example. If port 22 is allowed in iptables but I block it in ufw. Will it be blocked? Or what if it’s the other way around?

https://redd.it/lfwzc0
@r_linux