You are not logged in.
OK, thanks .... still checking here on Stable. 0 at the moment.
@ HoaS
28 May 17 @ 16:20:04 ~
$ apt update && apt list --upgradable
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
28 May 17 @ 16:20:06 ~
$
Needs root access.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Needs root access
Ah yes, apologies S11, I was using the "#" symbol to indicate that root privileges are required — stock Debian doesn't include `sudo` and I don't use it myself.
Last edited by Head_on_a_Stick (2017-05-28 19:30:44)
Offline
Sector11 wrote:Needs root access
Ah yes, apologies S11, I was using the "#" symbol to indicate that root privileges are required — stock Debian doesn't include `sudo` and I don't use it myself.
I set up sudo on my system to make it quick and easy to run something as root. I added only my main user to the sudo group in sudoers file.
Real Men Use Linux
Offline
^ I remove `sudo` then edit /etc/pam.d/su to restrict `su` access to members of the wheel group, as it is in the BSDs.
Linux is too lax, IMO
Offline
Just leave out the update - sudo isn't needed for the list. As long as you can live with a possible error with the list of packages since the last update of course.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
I set up sudo on my system to make it quick and easy to run something as root. I added only my main user to the sudo group in sudoers file.
Yea, I'm not going down that road, S12 and I share the same login. I don't want her to have sudo access and I certainly will not give it to conky.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^ I remove `sudo` then edit /etc/pam.d/su to restrict `su` access to members of the wheel group, as it is in the BSDs.
Linux is too lax, IMO
?????????
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Ah yes, apologies S11, I was using the "#" symbol to indicate that root privileges are required
Not a problem, sometimes ya win, sometimes ya loose. And you have a much better winning streak than I do
And I 'should have known':
28 May 17 @ 17:18:50 ~
$ sudo su -
[sudo] password for sector11:
root@bunsen:~# exit
logout
28 May 17 @ 17:19:22 ~
$
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
?????????
Pop quiz hotshot: what if your good wife got hold of the root password and learned about the `su` command?
What do you do? What do you do?
8o
EDIT: I'm just joking here, sorry about the noise.
Last edited by Head_on_a_Stick (2017-05-28 20:25:35)
Offline
Just leave out the update - sudo isn't needed for the list. As long as you can live with a possible error with the list of packages since the last update of course.
I realize that, use it all the time but it is needed for the first part of the line:
apt update && ---
I'm still waiting for results on:
aptitude search "~U" | wc -l
if that works I'll go with it.
also:
28 May 17 @ 17:28:47 ~
$ apt list --upgradable
Listing... Done
28 May 17 @ 17:28:48 ~
$
with a 1 second time to complete it's not going online and checking, just checking the list here.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
aptitude search "~U" | wc -l
That command would also need the sources to be updated beforehand in order to return an accurate result, I think.
Offline
Well, PackRat said it worked when he ran SID so I'm checking.
Worst that can happen is it fails to pickup on something and I move on. But it's running in a conky while I do other things with "The Keyboard"
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Been a while since I've used aptitude, but I think the:
search "~U"
handles updating the sources when aptitude searches for updated packages.
You must unlearn what you have learned.
-- yoda
Online
Pop quiz hotshot: what if your good wife got hold of the root password and learned about the `su` command?
What do you do? What do you do?
8o
hahahahahah I mean: HAHAHAHAHA
JUMP! And hope you're on a narrow bridge over a slow moving deep river y/o Kiss You Butt G'Bye
PS: You apologize way too often. And that was an excellent movie! What a heroine!!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Been a while since I've used aptitude, but I think the:
search "~U"
handles updating the sources when aptitude searches for updated packages.
?upgradable ~U Select packages that are installed and can be upgraded.
Clicked on ?upgradable
?upgradable, ~U
This term matches any installed package which can be upgraded.
[Note] NoteNote that this only tests whether there are upgrades available for a package, not whether an upgrade could be performed (with actions such as safe-upgrade or full-upgrade).
For instance, there can be upgrades available for several packages, but maybe the upgraded versions of a subset conflict with each other, so they cannot be co-installed or not all of them upgraded at the same time.
doesn't say clearly either way but the language leads me to believe it just might work - for "upgrades" not updates.
the word "update" does not exist in "Table 2.3. Quick guide to search terms"
This is a little clearer:
?action(action), ~aaction
Matches packages upon which the given action is going to be performed. action can be “install”, “upgrade”, “downgrade”, “remove”, “purge”, “hold” (tests whether a package has been placed on hold), or “keep” (tests whether a package will be unchanged).
[Note]Note that this only tests whether an action is actually queued up to be performed on a package, not whether it could be performed. Thus, for instance, ?action(upgrade) matches exactly those packages that you have already decided to upgrade, not packages which could be upgraded in the future (for that, use ?upgradable).
so much for "updates"! It's a no go.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I've got another one: Firewall: ufw status, thanks to Naik
Slowly it's getting stuff - with some stuff in reserve as well.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
What about disk usage?
du --max-depth=1 -x -k | sort -n | awk 'function human(x) { s="KMGTEPYZ"; while (x>=1000 && length(s)>1) {x/=1024; s=substr(s,2)} return int(x+0.5) substr(s,1,1)"iB" } {gsub(/^[0-9]+/, human($1)); print}'
Output is sorted by size and it is in human size presentation.
Offline
^ Nice, but how do I put that on a "key" on the keyboard
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
really nice
[OT
To find space guzzlers on the HDDs, i always found the @BitJam (antiX-forum) top
as root
du -h $(find / -size +10M) | sort -h
OT]
Offline
Well, it does not make much sense on a desktop machine, but
acpi -b -i
might be useful on laptops (thanks to nobody for mentioning this command).
Offline