LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debian commands on Ubuntu system (https://www.linuxquestions.org/questions/linux-newbie-8/debian-commands-on-ubuntu-system-4175545345/)

papakota 06-14-2015 04:31 PM

Debian commands on Ubuntu system
 
Hello!
I found a nice video tutorial aimed at Debian 6.x users. I have Ubuntu 14.04 My question is... Can I just blindly use on modern Ubuntu system what they showed on older Debian system? Or should I be careful here? What's the risk, if any? Especially regarding LAMP install and commands (and also Apache configuration). Apache 2.2 back then (right?) and now it's 2.4... What do you think?

Head_on_a_Stick 06-14-2015 04:51 PM

https://help.ubuntu.com/community/ApacheMySQLPHP
https://help.ubuntu.com/14.04/serverguide/index.html

JeremyBoden 06-14-2015 04:54 PM

Ubuntu tend to mess with Debian - especially any GUI applications.

There's a very good chance that command line install/configuration is probably OK.

You will need to use only Ubuntu packages though - you can't install current Debian packages.
Mixing Ubuntu packages with Debian packages is guaranteed to fail in a bad way.

Why not try your setup in a VM first?

papakota 06-14-2015 08:10 PM

Thank you both for your replies!

I don't use VM. I wasn't asking about packages, but the SYNTAX of commands. For example, he teaches about Samba clients. The command (he uses Debian) he enters in his terminal is:

aptitude install smbclient

I know that usually in Ubuntu's terminal I use apt-get install command, so it's different.
That's what I was asking in my original post. Not about VMs and packages.

onlyesterday16 06-14-2015 11:17 PM

Debian commands should work on Ubuntu. If command not found, you can install it. For example "apt-get install aptitude" to use aptitude command.

However, Debian 6.x is old, so some packages may don't exist or have another name on Ubuntu.

papakota 06-15-2015 07:12 AM

Thanks!

cynwulf 06-15-2015 07:45 AM

Quote:

Originally Posted by papakota (Post 5377120)
Hello!
I found a nice video tutorial aimed at Debian 6.x users. I have Ubuntu 14.04 My question is... Can I just blindly use on modern Ubuntu system what they showed on older Debian system? Or should I be careful here? What's the risk, if any? Especially regarding LAMP install and commands (and also Apache configuration). Apache 2.2 back then (right?) and now it's 2.4... What do you think?

It depends on what is in the tutorial. If you follow it blindly the result will most likely be a broken system. Anything involving adding repositories to sources.list should be avoided. My suggestion is to search for what you want to do and find up to date written documentation.

papakota 06-15-2015 08:11 AM

Thanks for your reply!

Maybe I can just double-check what I'm following before actually doing it on Ubuntu?

rokytnji 06-15-2015 08:21 AM

While commands are similar. And. Ubuntu is based on Debian somewhat.

File location of certain libs may be different between Ubuntu and Debian.

Running Ubuntu large packages blindly on Debian installs breaks Debian for sure. Because of file location mismatch.

So even though the commands are similar. Pay attention to what room the furniture gets moved into.

example:

/usr/bin vs /usr/local/bin.

papakota 06-15-2015 10:27 AM

Thx! Yes, I understand that caution must be exercised prior to copying commands on Ubuntu PC.

JeremyBoden 06-15-2015 11:32 AM

I would suspect that Ubuntu would load a number of extra "recommended" packages for each install.
So you might have a few extra packages.

Any time from now until a couple of years into the future, this has the potential to cause knock-on dependency problems.
This is really unlikely though. :D

suicidaleggroll 06-15-2015 11:34 AM

Quote:

Originally Posted by papakota (Post 5377387)
Thanks for your reply!

Maybe I can just double-check what I'm following before actually doing it on Ubuntu?

You should be doing that anyway when you're following ANY instructions on the web, regardless of distro/version mismatches.

Blindly following a set of command line instructions on some random blog on the web without even thinking about what you're running and why is a good way to break your system.

papakota 06-15-2015 01:30 PM

Thank you for your replies!
Well, LinuxCBT isn't exactly a "random blog on the web" I would hope...


All times are GMT -5. The time now is 03:44 PM.