Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Ok, thanks. My only guess is that it is a Mint extension of the apt command that allows apt to be used without sudo. Personally, I find it a bit frustrating, for support purposes in particular, that different distros should have a fundamentally different approach to the same command, but I'm just going to have to live with it. If I'm helping anyone who's running Ubuntu then I'll need to remember the sudo. Sorry for having wasted some of your time with this! It seems we're both learning something from this thread...
So, let's go back to sudo (as you rightly suggested):
Ok, thanks. My only guess is that it is a Mint extension of the apt command that allows apt to be used without sudo. Personally, I find it a bit frustrating, for support purposes in particular, that different distros should have a fundamentally different approach to the same command, but I'm just going to have to live with it. If I'm helping anyone who's running Ubuntu then I'll need to remember the sudo. Sorry for having wasted some of your time with this! It seems we're both learning something from this thread...
So, let's go back to sudo (as you rightly suggested):
Code:
sudo apt update
sudo apt install inxi
Code:
[sudo] password for john:
Hit:1 http://mirror.it.ubc.ca/ubuntu xenial InRelease
Hit:2 http://mirror.it.ubc.ca/ubuntu xenial-updates InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Hit:4 http://mirror.it.ubc.ca/ubuntu xenial-backports InRelease
Hit:5 http://archive.canonical.com/ubuntu xenial InRelease
Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [491 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [438 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [212 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.7 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [68.0 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [107 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [142 kB]
Fetched 1,632 kB in 1s (965 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Code:
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ sudo apt install inxi
[sudo] password for john:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gawk hddtemp lm-sensors mesa-utils
Suggested packages:
gawk-doc ksensors fancontrol sensord read-edid i2c-tools
The following NEW packages will be installed:
gawk hddtemp inxi lm-sensors mesa-utils
0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
Need to get 693 kB of archives.
After this operation, 2,863 kB of additional disk space will be used.
Do you want to continue? [Y/n]
And should I run with sudo the last line of code 1 in post 92 ?
ie 1 package can be upgraded. Run 'apt list --upgradable' to see it.
You may as well, yes. It's always a good idea to keep your system as up-to-date as possible. Sometimes when you don't keep on top of things (for a long while anyway), there is a greater chance of dependency problems between packages when you finally do try to bring it up to date.
You may as well, yes. It's always a good idea to keep your system as up-to-date as possible. Sometimes when you don't keep on top of things (for a long while anyway), there is a greater chance of dependency problems between packages when you finally do try to bring it up to date.
I did it without sudo and this came up:
Code:
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ apt list --upgradable
Listing... Done
xdg-utils/xenial-security,xenial-security 1.1.1-1ubuntu1.16.04.3 all [upgradable from: 1.1.1-1ubuntu1.16.04.1]
N: There are 2 additional versions. Please use the '-a' switch to see them.
john@john-HP-Compaq-6200-Pro-SFF-PC:~$
No need. However you could run inxi and inxi -F on the command line in order to see a short and longer summary of your system. No need to paste that output there, it's just to give you an idea of the sort of information it can generate. inxi is a very useful tool and will help you to provide info for people supporting you.
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ apt list --upgradable
Listing... Done
xdg-utils/xenial-security,xenial-security 1.1.1-1ubuntu1.16.04.3 all [upgradable from: 1.1.1-1ubuntu1.16.04.1]
N: There are 2 additional versions. Please use the '-a' switch to see them.
john@john-HP-Compaq-6200-Pro-SFF-PC:~$
Ok. In that case, you didn't need sudo because you're not actually changing any system (root-owned) resources, you're just reading them. Don't worry about the distinction though - it would still have worked with sudo.
You can do the actual upgrade of the package with:
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ sudo apt upgrade
[sudo] password for john:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
xdg-utils
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 59.6 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 xdg-utils all 1.1.1-1ubuntu1.16.04.3 [59.6 kB]
Fetched 59.6 kB in 0s (115 kB/s)
(Reading database ... 248744 files and directories currently installed.)
Preparing to unpack .../xdg-utils_1.1.1-1ubuntu1.16.04.3_all.deb ...
Unpacking xdg-utils (1.1.1-1ubuntu1.16.04.3) over (1.1.1-1ubuntu1.16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up xdg-utils (1.1.1-1ubuntu1.16.04.3) ...
Last edited by NelsonLinux; 05-21-2018 at 02:00 PM.
The pleasure has been mine, thank you.
Do you accept tips/gratuities/donations for your help via Paypal?
No, not at all, but thank you for the kind thought, NelsonLinux. And thanks for bearing with me, even though it must have been quite confusing at times. In the end though, you took to it like a duck to water.
If you use a particular software package on Linux and you really think that it's useful then you could donate to their project - there are a lot of great developers out there, for most of whom the development and maintenance of their software is a labour of love with no great financial recompense, so the price of a coffee or two does help out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.