Linux - Laptop and NetbookHaving 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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:~$
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.
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:~$
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).
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!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.