LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-27-2017, 04:32 PM   #1
ArtKautz
Member
 
Registered: Sep 2015
Location: Westminster, CO
Distribution: Mint 18.1 - Cinnamon
Posts: 116

Rep: Reputation: Disabled
Missing Linux command!


This is on an Acer Chromebook model CB3-131, running on the Chrome OS of course. I managed to get it dual booted with Ubuntu, but some of the updates required the command apt as in apt-get, but all I get is a a message saying that the command apt was not found. I tried just apt-get on this laptop, and it didn't have any problem with it at all - it's here. So, is there any way to get that function on the Chromebook? I thought that would a part of the basic Linux kernel and it was the same on everything.
 
Old 05-27-2017, 04:39 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by ArtKautz View Post
This is on an Acer Chromebook model CB3-131, running on the Chrome OS of course. I managed to get it dual booted with Ubuntu, but some of the updates required the command apt as in apt-get, but all I get is a a message saying that the command apt was not found. I tried just apt-get on this laptop, and it didn't have any problem with it at all - it's here. So, is there any way to get that function on the Chromebook? I thought that would a part of the basic Linux kernel and it was the same on everything.
The newer apt command is not the same as the apt-get command. It is also not yet universally supplied by APT-using distros (APT is the name of the whole package). Which version of Ubuntu are you using, and which version of the APT package (dpkg -l apt)?

You can always use apt-get in place of apt, although the command arguments may be different in some cases.

Which apt command line in particular are you trying to use when you get the error?

By the way, APT is a normal package - it is not a part of the Linux kernel.
 
Old 05-27-2017, 05:04 PM   #3
ArtKautz
Member
 
Registered: Sep 2015
Location: Westminster, CO
Distribution: Mint 18.1 - Cinnamon
Posts: 116

Original Poster
Rep: Reputation: Disabled
The Ubuntu version is Trusty. As for the Apt version, dpkg doesn't appear to be a command it recognizes (on either machine).
 
Old 05-27-2017, 05:42 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
If dpkg is on neither machine then you have problems. It is Debian/Ubuntu/Mint etc's base package manager and without it, packages can't be installed.

On your laptop, can you please try a simple:

Code:
dpkg --version
and paste the results here.

Also, is it Trusty that you're running on the laptop too?
 
Old 05-27-2017, 06:11 PM   #5
ArtKautz
Member
 
Registered: Sep 2015
Location: Westminster, CO
Distribution: Mint 18.1 - Cinnamon
Posts: 116

Original Poster
Rep: Reputation: Disabled
From the laptop, dpkg --version gets:

Debian 'dpkg' package management program version 1.18.4 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.

The laptop is running Linux Mint 18.1.
 
Old 05-27-2017, 06:16 PM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Great, so dpkg is installed on your laptop, despite what you thought. Can you try the same command on the Chromebook please?

And, if that works, can you then follow that up with:

Code:
dpkg -l apt
(the option is a small letter ell)
 
Old 05-27-2017, 08:23 PM   #7
ArtKautz
Member
 
Registered: Sep 2015
Location: Westminster, CO
Distribution: Mint 18.1 - Cinnamon
Posts: 116

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Great, so dpkg is installed on your laptop, despite what you thought. Can you try the same command on the Chromebook please?

And, if that works, can you then follow that up with:

Code:
dpkg -l apt
(the option is a small letter ell)
And the answer is:
bash: dpkg: command not found.

Oh, and the laptop is using the Cinnamon desktop.

On the laptop, apt is in /etc/apt which is also where the Chromebook has it (which begs the question, is it really a working version and whatever is supposed to call for it just isn't?). However, in looking at the text files, I could not
determine who was at what release level.
 
Old 05-28-2017, 04:49 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Strange. Let's concentrate on the Chromebook. Can you try:

Code:
/usr/bin/dpkg --version
and also

Code:
echo $PATH
 
Old 05-28-2017, 10:03 PM   #9
ArtKautz
Member
 
Registered: Sep 2015
Location: Westminster, CO
Distribution: Mint 18.1 - Cinnamon
Posts: 116

Original Poster
Rep: Reputation: Disabled
Thhis:
/usr/bin/dpkg --version

Got this:
Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.

and this:
echo $PATH

resulted in this:
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

That "games" part strikes me as a bit odd. I am thinking of trying the delete it and reinstall it as shown here: https://askubuntu.com/questions/7795...-missing#77959
This holiday and family get-together is slowing things down.

Last edited by ArtKautz; 05-28-2017 at 10:06 PM.
 
Old 05-29-2017, 03:31 AM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Thanks, ArtKautz.

I have to admit that this makes no sense to me so far.

To recapitulate, you're saying that on the Chromebook

Code:
dpkg --version
doesn't work (please humour me and try this one more time), but

Code:
/usr/bin/dpkg --version
works. However $PATH includes /usr/bin (the "games" listings in it are perfectly normal) so the dpkg version in /usr/bin should be located and run.

Can you try the following:

Code:
which dpkg
That should tell us which dpkg is being run if you don't specify a filepath.

One concern is that your path doesn't contain any references to any of the sbin directories. I don't know if this is a Trusty feature. How are you running these commands - are you using the Terminal program?

Forget trying to reinstall apt for the moment. Your problem may run deeper than that so we need to sort this out first. For the apt problem, I suspect that there might be an issue with your sudoers file. But concentrate on your family get-together first - that's more important.
 
Old 05-29-2017, 08:21 AM   #11
ArtKautz
Member
 
Registered: Sep 2015
Location: Westminster, CO
Distribution: Mint 18.1 - Cinnamon
Posts: 116

Original Poster
Rep: Reputation: Disabled
Yes, this is on a Acer Chromebook, a CB3-131 model. And I am doing these commands in terminal.

Okay, entering /usr/bin/dpkg --version got:

(trusty)art@localhost:~$ /usr/bin/dpkg --version
Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
(trusty)art@localhost:~$

and which dkpg got:

(trusty)art@localhost:~$ which dpkg
/usr/bin/dpkg
(trusty)art@localhost:~$
 
Old 05-29-2017, 08:27 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by ArtKautz View Post
Yes, this is on a Acer Chromebook, a CB3-131 model. And I am doing these commands in terminal.

Okay, entering /usr/bin/dpkg --version got:

(trusty)art@localhost:~$ /usr/bin/dpkg --version
Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
(trusty)art@localhost:~$

and which dkpg got:

(trusty)art@localhost:~$ which dpkg
/usr/bin/dpkg
(trusty)art@localhost:~$
As it should be, great.

Sorry, I badly expressed myself, it was the

Code:
dpkg --version
that I wanted you to try again, because that was the one you said didn't work before.
 
Old 05-29-2017, 08:45 AM   #13
ArtKautz
Member
 
Registered: Sep 2015
Location: Westminster, CO
Distribution: Mint 18.1 - Cinnamon
Posts: 116

Original Poster
Rep: Reputation: Disabled
Okay, here's that:
(trusty)art@localhost:~$ dpkg --version
Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
(trusty)art@localhost:~$
 
Old 05-29-2017, 08:49 AM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by ArtKautz View Post
Okay, here's that:
(trusty)art@localhost:~$ dpkg --version
Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
(trusty)art@localhost:~$
But you said in posts #3 and #7 that the Chromebook couldn't find the dpkg command.

Ok, moving on (from now on, forget your laptop, everything concerns the Chromebook).

Let's try out apt-get:

Code:
sudo apt-get update
 
Old 05-29-2017, 09:31 AM   #15
ArtKautz
Member
 
Registered: Sep 2015
Location: Westminster, CO
Distribution: Mint 18.1 - Cinnamon
Posts: 116

Original Poster
Rep: Reputation: Disabled
Ooooooooooookay, it looks like it just updated it:

Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
Fetched 6,413 kB in 28s (227 kB/s)
Reading package lists... Done
(trusty)art@localhost:~$

I left out the first zillion lines! And, I just did a sudo apt-get upgrade and it worked and upgraded a bunch of things, including Samba, with in light of the recent malware locking up files, is probably a good thing.

I think you fixed this, whatever it was! Thanks so much!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Grep is missing the command -A ? LinuxChiq Linux - Newbie 2 06-24-2012 11:29 AM
Missing command Allie Linux - Newbie 2 08-05-2009 11:50 PM
missing insmod command caesarkim Linux - Networking 2 05-20-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration