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/)

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.


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