LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Problem after upgrading to Buster from Stretch (https://www.linuxquestions.org/questions/debian-26/problem-after-upgrading-to-buster-from-stretch-4175658508/)

joseph_lewis 08-03-2019 01:15 AM

Problem after upgrading to Buster from Stretch
 
Hello everyone,

I'm using Debian for personal PC. I moved into linux January 2019. Until then I used windows versions. I didn't face any problem before upgrading. I used Stretch version. I updated my debian stretch to buster on 01 August 2019. I didn't knew that there are specific ways to do that, I like using terminal for that sorts of stuff, so I opened terminal type below commands,

01. sudo apt-get update
02. sudo apt-get upgrade

There were about 400MB. After that, some icons had changed. I first noticed nautilus icon on docker changed. So I closed nautilus and tried to open it. But I couldn't. So then I tried to open nautilus through terminal. It gives me below error message,

bash: nautilus: command not found

So then I tried to run different commands, "ls, ls, hibernate, etc..." and non of them works. I started searching on the internet to fix these problems. I didn't find a good solution for nautilus fix. So I installed "Thunar" file manager for temporarily. Then I found a solution for the commands not working error I have, I tried "/bin/ls", and it worked. But not all, still there are lots of commands that not working.

I tried different ways and different solutions to fix my nautilus problem. I'll post below what I see with the commands I give,

root@joseph:/home/joseph# nautilus
bash: nautilus: command not found
root@joseph:/home/joseph# apt-get install nautilus
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nautilus : Depends: libc6 (>= 2.29) but 2.28-10 is to be installed
Depends: libunity9 (>= 3.4.6) but it is not installable
E: Unable to correct problems, you have held broken packages.
root@joseph:/home/joseph# apt-get reinstall nautilus
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nautilus : Depends: libc6 (>= 2.29) but 2.28-10 is to be installed
Depends: libunity9 (>= 3.4.6) but it is not installable
E: Unable to correct problems, you have held broken packages.
root@joseph:/home/joseph# apt-get install libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6 is already the newest version (2.28-10).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@joseph:/home/joseph# apt-get install libunity9
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libunity9 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libunity9' has no installation candidate

I tried to install gnome to see if it will show me any errors.,

root@joseph:/home/joseph# apt-get install gnome
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
gnome : Depends: gnome-core (= 1:3.30+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@joseph:/home/joseph# apt-get install gnome-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
gnome-core : Depends: nautilus (>= 3.30) but it is not going to be installed
Depends: gnome-sushi (>= 3.30) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@joseph:/home/joseph# apt-get install gnome-sushi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
gnome-sushi : Depends: nautilus (>= 3.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

After that, I found a guide to upgrade to buster from stretch. (https://linuxconfig.org/how-to-upgra...bian-10-buster) I checked it and I found, that I need to update the source.list before upgrading. So then I updated the source list and upgraded again. It downloads about 400MB again. But problems still there. It's still the same.

I have no I idea how can I fix this problem. I'm pretty sure that there must be a way to fix these problems without reinstalling the system. But I really really need to fix this somehow without reinstalling.

Feel free to ask me any question and I'll try my best to co-operate with you.

Thank you.

Timothy Miller 08-03-2019 01:21 AM

So, give us the output of these commands, run in this order:

Code:

cat /etc/apt/sources.list
ls /etc/apt/sources.list.d/
ls /etc/apt/preferences.d/
apt update
apt upgrade
apt full-upgrade


joseph_lewis 08-03-2019 01:30 AM

Thanks for the quick reply :)
 
Code:

root@joseph:/home/joseph# cat /etc/apt/sources.list
#

# deb cdrom:[Official Debian GNU/Linux Live 9.6.0 gnome 2018-11-10T11:54]/ stretch main

# deb cdrom:[Official Debian GNU/Linux Live 9.6.0 gnome 2018-11-10T11:54]/ stretch main

# Line commented out by installer because it failed to verify:
deb http://security.debian.org/debian-security stretch/updates main
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/debian-security stretch/updates main

# stretch-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
#deb http://deb.debian.org/debian/ stretch-updates main
#deb-src http://deb.debian.org/debian/ stretch-updates main

#deb http://ppa.launchpad.net/gns3/ppa/ubuntu xenial main
#deb-src http://ppa.launchpad.net/gns3/ppa/ubuntu xenial main

deb http://httpredir.debian.org/debian stable main contrib
deb-src http://httpredir.debian.org/debian stable main contrib

deb http://httpredir.debian.org/debian buster main
deb http://httpredir.debian.org/debian buster-updates main
deb http://security.debian.org buster/updates main


Code:

root@joseph:/home/joseph# ls /etc/apt/sources.list.d/
atareao-ubuntu-telegram-disco.list                      google-chrome.list.save
atareao-ubuntu-telegram-disco.list.save                      home:smplayerdev.list
base.list                                              home:smplayerdev.list.save
base.list.save                                              lubomir-brindza-ubuntu-nautilus-typeahead-disco.list
dockbar-main-ubuntu-ppa-disco.list                      lubomir-brindza-ubuntu-nautilus-typeahead-disco.list.save
dockbar-main-ubuntu-ppa-disco.list.save                      nilarimogard-ubuntu-webupd8-eoan.list
fossfreedom-ubuntu-rhythmbox-plugins-disco.list      playonlinux.list
fossfreedom-ubuntu-rhythmbox-plugins-disco.list.save  playonlinux.list.save
google-chrome.list

Code:

root@joseph:/home/joseph# ls /etc/apt/preferences.d/
"above command gives me nothing."

Code:

root@joseph:/home/joseph# apt update
Ign:1 http://download.opensuse.org/repositories/home:/smplayerdev/Debian_9.0  InRelease                                           
Hit:2 http://download.opensuse.org/repositories/home:/smplayerdev/Debian_9.0  Release                                             
Get:3 http://download.opensuse.org/repositories/home:/smplayerdev/Debian_9.0  Release.gpg [481 B]                                 
Ign:3 http://download.opensuse.org/repositories/home:/smplayerdev/Debian_9.0  Release.gpg                                         
Ign:7 http://dl.google.com/linux/chrome/deb stable InRelease                                                                     
Hit:8 http://dl.google.com/linux/chrome/deb stable Release                                                                       
Ign:10 http://ppa.launchpad.net/dockbar-main/ppa/ubuntu disco InRelease                                                           
Ign:11 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu eoan InRelease                                                       
Get:12 http://ppa.launchpad.net/atareao/telegram/ubuntu disco InRelease [15.4 kB]                                                 
Err:12 http://ppa.launchpad.net/atareao/telegram/ubuntu disco InRelease                                                           
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A9653F936FD5529
Err:13 http://ppa.launchpad.net/dockbar-main/ppa/ubuntu disco Release                                                             
  404  Not Found [IP: 91.189.95.83 80]
Get:14 http://ppa.launchpad.net/fossfreedom/rhythmbox-plugins/ubuntu disco InRelease [15.4 kB]                                   
Err:14 http://ppa.launchpad.net/fossfreedom/rhythmbox-plugins/ubuntu disco InRelease                                             
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82EB5823F4FE239D
Get:15 http://ppa.launchpad.net/lubomir-brindza/nautilus-typeahead/ubuntu disco InRelease [15.9 kB]                               
Err:15 http://ppa.launchpad.net/lubomir-brindza/nautilus-typeahead/ubuntu disco InRelease                                         
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 301F60F1D6A30942
Err:16 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu eoan Release                                                         
  404  Not Found [IP: 91.189.95.83 80]
Hit:17 http://deb.playonlinux.com stretch InRelease                                                                               
Hit:4 http://cdn-fastly.deb.debian.org/debian stable InRelease                                                                   
Hit:5 http://cdn-fastly.deb.debian.org/debian buster InRelease                     
Get:6 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [46.8 kB]   
Ign:20 http://ftp.snt.utwente.nl/debian stretch InRelease                                                                         
Hit:21 http://ftp.snt.utwente.nl/debian stretch Release                                                                           
Hit:18 http://security-cdn.debian.org/debian-security stretch/updates InRelease                                                   
Hit:19 http://security-cdn.debian.org buster/updates InRelease
Reading package lists... Done
W: GPG error: http://download.opensuse.org/repositories/home:/smplayerdev/Debian_9.0  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6FD77D5EDF966437
E: The repository 'http://download.opensuse.org/repositories/home:/smplayerdev/Debian_9.0  Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ppa.launchpad.net/atareao/telegram/ubuntu disco InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A9653F936FD5529
E: The repository 'http://ppa.launchpad.net/atareao/telegram/ubuntu disco InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/dockbar-main/ppa/ubuntu disco Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ppa.launchpad.net/fossfreedom/rhythmbox-plugins/ubuntu disco InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82EB5823F4FE239D
E: The repository 'http://ppa.launchpad.net/fossfreedom/rhythmbox-plugins/ubuntu disco InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ppa.launchpad.net/lubomir-brindza/nautilus-typeahead/ubuntu disco InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 301F60F1D6A30942
E: The repository 'http://ppa.launchpad.net/lubomir-brindza/nautilus-typeahead/ubuntu disco InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu eoan Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Code:

root@joseph:/home/joseph# apt upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Code:

root@joseph:/home/joseph# apt full-upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


ondoho 08-05-2019 05:00 AM

What you really want is a "dist-upgrade" - the normal upgrade should be done regularly.
Do not run everything as root!
Maybe don't use the terminal at all?
Do you understand the meaning of "Leave well enough alone" and "Don't fix what isn't broken"?
Don't mess with the defaults unless you're 100% sure you know what you're doing.

Generally speaking I get the impression that a hands-on distro like debian is not right for you.
Try Linux Mint or Ubuntu (Lubuntu, Xubuntu) instead, it will make maintenance & upgrading a little easier.

joseph_lewis 08-05-2019 05:09 AM

Thank you ondoho
 
I did run "dist-upgrade". But it didn't fix my problem.

I normally use sudo for these kind of commands. But for here, I knew what will be the results, so I run them as root.

I'm not afraid of breaking this. If this broken, I can find a way to fix and I learn more and more from it.

Thank you so much for your reply ondoho. :)

joseph_lewis 08-05-2019 05:12 AM

Hello Timothy Miller...

I replied to your post two times. But my reply didn't appear here. Is it because of the text I'm typing? I just copy and paste here command outputs.

Timothy Miller 08-05-2019 08:27 AM

Try putting them inside the code tags such as I did. Probably too large a reply without them.

joseph_lewis 08-05-2019 09:20 PM

ah now there is the reply. Right after your requested message. I placed it in code tags. Don't know why it takes too much time to appear. But now it's here. :) Thanks Miller. :)

Timothy Miller 08-05-2019 11:36 PM

Ok, so your problem is almost definitely due to some of your 3rd party repos/ppa's. Looks like buster is properly installed without any issues for the base system. You should probably clean up the sources.list though, as you've still got references to stretch there, there's pppa's in there (commented out at least), there's a definite possibility of that EVENTUALLY causing issues.

That said, do this. Create a directory (doesn't matter where), and do as root
Code:

mv /etc/apt/sources.list.d/* /the/directory/you/created/
apt update
apt install nautilus


joseph_lewis 08-05-2019 11:46 PM

Thanks Miller...
 
I've done as you said.

Code:

root@joseph:/home/joseph# apt update
Hit:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease   
Hit:2 http://security-cdn.debian.org buster/updates InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stable InRelease   
Hit:4 http://cdn-fastly.deb.debian.org/debian buster InRelease
Get:5 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [46.8 kB]
Fetched 46.8 kB in 10s (4,918 B/s)                                                                                               
Reading package lists... Done
Building dependency tree     
Reading state information... Done
All packages are up to date.

Code:

root@joseph:/home/joseph# apt install nautilus
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nautilus : Depends: libnautilus-extension1a (= 3.30.5-2) but 1:3.32.1-0ubuntu0.19.04.0ppa1 is to be installed
            Recommends: gnome-sushi but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

And there's a new problem.

I ran apt upgrade and apt dist-upgrade after above results. But there's nothing. If that's some help for you.

Code:

root@joseph:/home/joseph# apt upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@joseph:/home/joseph# apt dist-upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@joseph:/home/joseph#


evo2 08-06-2019 01:19 AM

Hi,

it seems you still have an Ubuntu ppa in your sources.
Quote:

Code:

The following packages have unmet dependencies:
 nautilus : Depends: libnautilus-extension1a (= 3.30.5-2) but 1:3.32.1-0ubuntu0.19.04.0ppa1 is to be installed
            Recommends: gnome-sushi but it is not going to be installed


For a default Buster system, basically you want:
Code:

deb http://httpredir.debian.org/debian buster main contrib
deb http://httpredir.debian.org/debian buster-updates main
deb http://security.debian.org buster/updates main

All of this is covered in the Buster release notes. See https://www.debian.org/releases/bust...pgrade-process

Evo2.

joseph_lewis 08-06-2019 02:19 AM

Thanks evo
 
I tried as you said, but the problem still the same.

Code:

root@joseph:/home/joseph# apt update
Hit:2 http://cdn-fastly.deb.debian.org/debian buster InRelease                                 
Hit:1 http://security-cdn.debian.org buster/updates InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease
Get:4 http://cdn-fastly.deb.debian.org/debian buster/contrib i386 Packages [46.9 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian buster/contrib amd64 Packages [51.0 kB]                                             
Get:6 http://cdn-fastly.deb.debian.org/debian buster/contrib Translation-en [44.7 kB]                                             
Get:7 http://cdn-fastly.deb.debian.org/debian buster/contrib amd64 DEP-11 Metadata [11.5 kB]                                     
Get:8 http://cdn-fastly.deb.debian.org/debian buster/contrib DEP-11 48x48 Icons [56.4 kB]                                         
Get:9 http://cdn-fastly.deb.debian.org/debian buster/contrib DEP-11 64x64 Icons [110 kB]                                         
Fetched 321 kB in 1min 42s (3,137 B/s)                                                                                           
Reading package lists... Done
Building dependency tree     
Reading state information... Done
All packages are up to date.

It downloaded some files. But nothing changed.

Code:

root@joseph:/home/joseph# apt upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@joseph:/home/joseph# apt install nautilus
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nautilus : Depends: libnautilus-extension1a (= 3.30.5-2) but 1:3.32.1-0ubuntu0.19.04.0ppa1 is to be installed
            Recommends: gnome-sushi but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


evo2 08-06-2019 02:31 AM

Ok, you need to purge the third party packages. The following may help you find them.
Code:

dpkg -l | grep -Ei 'ubuntu|ppa'
Evo2.

joseph_lewis 08-06-2019 02:39 AM

Thanks Evo
 
I found these,

Code:

root@joseph:/home/joseph# dpkg -l | grep -Ei 'ubuntu|ppa'
ii  apparmor                              2.13.2-10                            amd64        user-space parser utility for AppArmor
ii  libapparmor1:amd64                    2.13.2-10                            amd64        changehat AppArmor library
ii  libnautilus-extension1a:amd64          1:3.32.1-0ubuntu0.19.04.0ppa1        amd64        libraries for nautilus components - runtime version

What should I do now Evo?

evo2 08-06-2019 02:46 AM

Hi,

ok it looks like you just need to get rid of libnautilus-extension1a. So:
Code:

apt purge libnautilus-extension1a
After that you should be able to install nautilus. If not please show what happened, and also the output of the following two commands:
Code:

dpkg --audit
dpkg --get-selections | grep -w hold

Evo2.

P.S. Are you still having problems with finding basic commands like "ls" in your user account? It seems like your PATH environment variable got messed up somehow.

descendant_command 08-06-2019 03:10 AM

This is why mixing distro's is not recommended.
You will need to remove the ubuntu packages to install the proper Debian ones that your new installs are depending on.
Aptitude is probably a better tool than apt for such fun.

ondoho 08-06-2019 03:19 AM

I understand these files have been removed, yes:
Code:

root@joseph:/home/joseph# ls /etc/apt/sources.list.d/
atareao-ubuntu-telegram-disco.list                      google-chrome.list.save
atareao-ubuntu-telegram-disco.list.save                      home:smplayerdev.list
base.list                                              home:smplayerdev.list.save
base.list.save                                              lubomir-brindza-ubuntu-nautilus-typeahead-disco.list
dockbar-main-ubuntu-ppa-disco.list                      lubomir-brindza-ubuntu-nautilus-typeahead-disco.list.save
dockbar-main-ubuntu-ppa-disco.list.save                      nilarimogard-ubuntu-webupd8-eoan.list
fossfreedom-ubuntu-rhythmbox-plugins-disco.list      playonlinux.list
fossfreedom-ubuntu-rhythmbox-plugins-disco.list.save  playonlinux.list.save
google-chrome.list

???

But since this is debian, not ubuntu, it still leaves one ubuntu-specific source to be removed:
Code:

root@joseph:/home/joseph# cat /etc/apt/sources.list
#

# deb cdrom:[Official Debian GNU/Linux Live 9.6.0 gnome 2018-11-10T11:54]/ stretch main

# deb cdrom:[Official Debian GNU/Linux Live 9.6.0 gnome 2018-11-10T11:54]/ stretch main

# Line commented out by installer because it failed to verify:
deb http://security.debian.org/debian-security stretch/updates main
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/debian-security stretch/updates main

# stretch-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
#deb http://deb.debian.org/debian/ stretch-updates main
#deb-src http://deb.debian.org/debian/ stretch-updates main

#deb http://ppa.launchpad.net/gns3/ppa/ubuntu xenial main
#deb-src http://ppa.launchpad.net/gns3/ppa/ubuntu xenial main

deb http://httpredir.debian.org/debian stable main contrib
deb-src http://httpredir.debian.org/debian stable main contrib

deb http://httpredir.debian.org/debian buster main
deb http://httpredir.debian.org/debian buster-updates main
deb http://security.debian.org buster/updates main

I can see it's commented out now, so it shouldn't cause any harm, but just remove those 2 lines.
Also read: https://wiki.debian.org/DontBreakDebian

...and you don't have to run upgrades/dist-upgrades while we're fixing this. Just issue the commands we ask you to enter.

joseph_lewis 08-06-2019 03:38 AM

Thanks Evo
 
Nautilus is working fine now... :) Thank you evo... :) :D

it doesn't give me any output with these commands.

Code:

root@joseph:/home/joseph# dpkg --audit
root@joseph:/home/joseph# dpkg --get-selections | grep -w hold

Now the basic commands are working fine. I'm having problem with running separately installed command line tools. For an example, Hibernate. This command is not working. I remove it and install it again. But it doesn't work. I also used nethogs for network monitoring. It also not working. But it installed. Can you help me with this?

evo2 08-06-2019 03:44 AM

Hi,

glad you got your packages sorted out. Not getting any output from those commands is a *good* sign.


On Buster, the "correct" way to hibernate is to issue the command to systemd. Eg
Code:

systemctl hibernate
Exactly what command are you running? What did you remove and reinstall, and how?

Evo2.

P.S. I highly recommend you read the link, https://wiki.debian.org/DontBreakDebian, posted by ondoho. The Debian wiki has been getting much better over the years.

joseph_lewis 08-06-2019 03:48 AM

Thanks ondoho & descendant_command
 
Those lines I added for gns3. At that time, I didn't know much about linux. I followed the steps I found online to install gns3. But now I understand it's wrong thing to do. I'll keep it in mind and work safely in future. :)

I'll read this link too. :) Thanks for sharing.

joseph_lewis 08-06-2019 04:09 AM

Hello Evo
 
Code:

systemctl hibernate
Command is little slower for me. I found "Hibernate" terminal tool is much faster. I'm not using hibernate that much. But sometimes I use it.

ok now the thing is, I can run nethogs and hibernate commands without using root. I can use "sudo nethogs" to run nethogs and hibernate.

When I try to run "nethogs" in root,

Code:

root@joseph:/home/joseph# nethogs
bash: nethogs: command not found

this appear. But I can run it on my account using sudo command. Any idea?

ondoho 08-06-2019 04:34 AM

That's OK, things are running as intended.
To understand, you can look at the output of this command, run as user, with sudo, or as root:
Code:

echo "$PATH"

joseph_lewis 08-06-2019 04:37 AM

Outputs,

Code:

joseph@joseph:~$ sudo echo "$PATH"
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

Code:

root@joseph:/home/joseph# echo "$PATH"
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games


evo2 08-06-2019 04:47 AM

Hi,

strange, path is the same for both. As joseph, run:
Code:

which nethogs
Evo2.

joseph_lewis 08-06-2019 04:49 AM

Code:

joseph@joseph:~$ which nethogs
joseph@joseph:~$ sudo which nethogs
/usr/sbin/nethogs

without sudo, it didn't gave me any output. So I tried it with "sudo".

evo2 08-06-2019 05:00 AM

Hi,

/usr/sbin needs to be in roots PATH. /sbin should be too. I don't know why they are missing. Did you modify /root/bashrc, /root/.profile or /etc/profile or similar?

Evo2.

joseph_lewis 08-06-2019 05:03 AM

Hello Evo
 
Oh no. I don't remember I did anything like that. However, can you help me with this?

I know what not to touch now. :D Great lesson... :D

evo2 08-06-2019 05:35 AM

Hi,

to understand which file may have been modified please run the following as root.
Code:

md5sum /{root/.,etc/}{bash*,profile}
ls -l /{root/.,etc/}{bash*,profile}

The first command gives a checksum or signature of each file, the second one will show modification time and fiel size.
These can be compared against unmodified versions.

Evo2.

joseph_lewis 08-06-2019 05:39 AM

Hello Evo
 
Code:

root@joseph:/home/joseph# md5sum /{root/.,etc/}{bash*,profile}
203247f2faaa0590983a3cbc2791471f  /root/.bash_history
d41d8cd98f00b204e9800998ecf8427e  /root/.bash_history-01553.tmp
e12f5739f81b08c470f20890304bf53e  /root/.bashrc
46438b614dcb2175148fa7e0bdc604a4  /root/.profile
89269e1298235f1b12b4c16e4065ad0d  /etc/bash.bashrc
md5sum: /etc/bash_completion.d: Is a directory
2255054e61cee1a99dbe893377820dde  /etc/profile


root@joseph:/home/joseph# ls -l /{root/.,etc/}{bash*,profile}
-rw-r--r-- 1 root root 1994 Apr 18 09:42 /etc/bash.bashrc
-rw-r--r-- 1 root root  767 Mar  4  2016 /etc/profile
-rw------- 1 root root 7805 Aug  6 15:13 /root/.bash_history
-rw------- 1 root root    0 Aug  3 18:44 /root/.bash_history-01553.tmp
-rw-r--r-- 1 root root  570 Jan 31  2010 /root/.bashrc
-rw-r--r-- 1 root root  148 Aug 17  2015 /root/.profile

/etc/bash_completion.d:
total 4
-rw-r--r-- 1 root root 2384 Aug 31  2016 dkms


evo2 08-06-2019 05:50 AM

Hmm, doesn't look like anything changed from a standard system. Your /etc/profile should be setting roots PATH to include the /sbin directories. How are you getting a root shell? If you use "su -l" should work... are you using "su -p"?

Evo2.

joseph_lewis 08-06-2019 05:54 AM

Hello Evo
 
I'm not sure what you talking about. could you please tell me more clearly? About root shell.

evo2 08-06-2019 06:09 AM

Hi,
Quote:

Originally Posted by joseph_lewis (Post 6022045)
I'm not sure what you talking about. could you please tell me more clearly? About root shell.

What do you do to get a terminal that looks like the following?
Code:

root@joseph:/home/joseph#
I can see from that, that you are in the normal users home directory which makes me think that the PATH is being preserved from the user joseph and not being set to the proper path for root.

Normally, to become root, as a normal user you issue the following command in a terminal:
Code:

su -l
Evo2.

joseph_lewis 08-06-2019 06:12 AM

Hello Evo
 
ah to that,

Code:

joseph@joseph:~$ su
Password:
root@joseph:/home/joseph#


evo2 08-06-2019 06:23 AM

Hi,

ok, then please try using "su -l" instead of "su".

Evo2.

joseph_lewis 08-06-2019 06:46 AM

Hello Evo
 
Code:

oseph@joseph:~$ su -l
Password:
root@joseph:~#
root@joseph:~#
root@joseph:~# exit
logout
joseph@joseph:~$ su -p
Password:
root@joseph:~#
root@joseph:~#
root@joseph:~# exit
exit
joseph@joseph:~$


joseph_lewis 08-06-2019 06:49 AM

Hello Evo
 
With the "su -l" command, I can run "nethogs". It opens normally. If I run "nethogs" after "su -p", it's not working.

Code:

joseph@joseph:~$ su -l
Password:
root@joseph:~# nethogs
Linux Cooked Socket link detected
                                Waiting for first packet to arrive (see sourceforge.net bug 1019381)
root@joseph:~# exit
logout
joseph@joseph:~$ su -p
Password:
root@joseph:~# nethogs
bash: nethogs: command not found
root@joseph:~#


evo2 08-06-2019 06:57 AM

Hi,

Quote:

Originally Posted by joseph_lewis (Post 6022067)
With the "su -l" command, I can run "nethogs". It opens normally. If I run "nethogs" after "su -p", it's not working.

That is the expected behaviour for a default Buster installation.

Evo2.

joseph_lewis 08-06-2019 07:01 AM

Hello Evo
 
But why it worked before? In stretch, I didn't have any problem running it on root. So my previous system vs broken? :O

If my new system is working fine, then it's fine with me. :D

I also have another small little tiny problem Evo. :D

Every time my system start, audio is muted. Audio level is 0%. This started to happen after the buster update. I checked on settings, didn't found anything related to fix it. Can you help me through this? :)

evo2 08-06-2019 07:11 AM

Hi,

possibly the default behaviour of su changed. I've never really used su without options, always either su -p or su -l. If you are interested, you can have a look at the change logs.

I'll try to have a look at your audio issue tomorrow. Dinner time for me now.

Cheers,

Evo2.

joseph_lewis 08-06-2019 07:16 AM

Thanks Evo
 
Ah ok Evo. Thanks for your help. You solved my problem and taught me many things. I really appreciate your help.

Thank you Evo. :)

evo2 08-06-2019 10:12 PM

Hi,

I'm not sure about your audio problem. There is some information at https://unix.stackexchange.com/quest...w-to-save-them
that may be of use to you.

I suggest you start a new thread for this problem.

Cheers,

Evo2.

joseph_lewis 08-06-2019 11:22 PM

Hello Evo
 
Ah ok evo... I'll try to find a solution for this. If I can't find any, I'll open another thread for it. Thanks for helping me. It taught me so many things. Thanks again. :)

ondoho 08-07-2019 02:04 AM

Quote:

Originally Posted by evo2 (Post 6022076)
possibly the default behaviour of su changed.

There was indeed talk about that some time ago; either su or sudo, can't remember which.

Also check if you have any aliases for su/sudo:
Code:

alias|grep su

joseph_lewis 08-07-2019 02:07 AM

Hello ondoho,

I tried "alias | grep su". But it's not showing me anything.


All times are GMT -5. The time now is 04:46 AM.