« first day (1286 days earlier)      last day (3651 days later) » 
00:00 - 23:0023:00 - 00:00

12:00 AM
OK, that's what I was wondering. Why is bash not POSIX?
 
it's the read -d feature which isn't in POSIX
a shell can have it, but it doesn't have to
I don't know offhand what bash lacks
 
@Gilles Yes, I understood, which made me wonder whether having extra features makes you non POSIX
I might post a question about that. I'll see if I can find out before Stephane answers :)
 
@Gilles I will just remove that part if read -d isn't POSIX, I thought it was. I'm not sure there is a reliable way to do it POSIXly
 
@Graeme there is in principle, but it's very difficult, because none of the text processing tools are required to accept null bytes
 
And here was I thinking I was clever with sed "$ "\!"N; $ { s/'/'\\\''/g; s/=/='/; s/$/'/ } "
 
12:06 AM
@Graeme Heh, you were, that's nice!
Apparently not clever enough, but clever nevertheless.
 
@Gilles I think it is more that some of the extra bash features wind up breaking POSIX conformance. You can run with --posix though.
 
@Graeme you need to use --posix, sure, but even that isn't enough
 
@Graeme The link I posted above gives all reasons.
> There is other POSIX behavior that Bash does not implement by default even when in POSIX mode. Specifically:

The fc builtin checks $EDITOR as a program to edit history entries if FCEDIT is unset, rather than defaulting directly to ed. fc uses ed if EDITOR is unset.
As noted above, Bash requires the xpg_echo option to be enabled for the echo builtin to be fully conformant.
Bash can be configured to be POSIX-conformant by default, by specifying the --enable-strict-posix-default to configure when building (see Optional Features).
 
Trap handling is probably broken, only ksh gets it right
 
@Gilles You mean this?
> 46 The arrival of SIGCHLD when a trap is set on SIGCHLD does not interrupt the wait builtin and cause it to return immediately. The trap command is run once for each child that exits.
 
12:09 AM
@terdon so you need build options, good to know.
 
@Graeme Apparently
 
12:27 AM
0
A: How do I source another process's environment variables?

GillesIn this answer, I assume a system where /proc/$pid/environ returns the environment of the process with the specified PID, with null bytes between variable definitions. (So Linux, Cygwin or Solaris). Zsh export "${(@ps:\000:)$(</proc/$pid/environ)}" Bash, mksh while IFS= read -r -d "" PWD; do...

I didn't find a non-Rube-Goldberg way of dealing with null bytes posixly
 
12:39 AM
@Gilles Could you explain the zsh magic please?
 
@terdon edited
 
@Gilles Thanks.
Your bash one seems to fail on exporting newlines
It will export the entire variable correctly but seems to convert a newline to a space.
Nope. Sorry, quoting idiocies on my part.
 
1:00 AM
@Gilles: . <<ENV /dev/stdin\n$(cat </proc/$pid/environ)\nENV\n
Kinda rubey. too, I guess.
If that doesn't handle null just add |sed -z or similar.
I think the subshell should handle the \0 though.
So probably: . <<ENV /dev/fd/0\n$(echo 'IFS=' ; cat /proc/$pid/environ ; echo 'unset IFS')\nENV\n could get it. It's the same as set, right?
speaking of which...
 
1:18 AM
@mikeserv completely broken since the entries in environ are null-separated, not newline-separated
@mikeserv sed: invalid option -- 'z'
 
`. <<ENV /dev/fd/0\n $(tr '\0' '\n' <proc/$pid/environ)\nENV\n
 
I have no idea what you're trying to do here, but it's not helping
 
Sorry - its not easy on the tablet. I do suspect though that if you put that in sh the \0 wouldn't pass the subshell.
You don't have -z? Weird - I got that.
@Gilles you should look again. Don't know why I didnt think of tr in the first place. If you havent already noticed - I'm a little dense sometimes. But I am persistent.
 
@mikeserv and what happens to values that contain newlines?
you can swap newlines and nulls with tr '\0\n' '\n\0'. It's a useful trick sometimes. But then you need to find a way to manipulate the data that works even when there are null bytes.
All GNU tools are null-safe, but POSIX doesn't mandate it
 
Nothing.
No need.
It doesn't come quoted?
I know that. But I thought the environ file was quoted?
As long as the values are quoted the here-doc won't do anything to the newlines.
 
1:32 AM
@mikeserv no, it's just null-separated records
why would it be quoted?
it has nothing to do with the shell, it's a kernel interface
 
Damn. I guess I'm thinking of set. So you'd have to do it with used after all -
I know that, I just still thought it came quoted.
Still. . <<ENV /dev/stdin\n$(sed '$!H;${x;/\(^\|\x00\)\([^=]*\).\([^\x00]*\)/s//\1="\2"\n/g}')\nENV\n
That might do it.
I dunno. Its hard enough typing it on the tablet, much less testing it.
 
@mikeserv I don't think so. What if a value contains "?
 
Oh, then I guess you use \x47 instead.
 
that's not the issue
you're barking up the wrong tree
heredocs won't help you there. Sure, you can use a heredoc, but a string will do just as well.
 
I had to throw in the towel on this one. The solution can be done with a combination of @Gilles tr trick and sed -n l. If you then pipe to a long sed script, read each line and pass it through printf and eval you will get it.
 
1:45 AM
OK. It would be better to save the ENV with set when the process is invoked of course. You wouldn't need to do all the parsing. Its served on a quoted silver platter.
Gilles used tr too?
A heredoc will help because it won't screw up the quotes and .dot can read a file.
I think the above should do it all thought.
If you use \x47 instead of "
Sorry. That's octal. \x27
You could use a pipe too - but then how do you get it in the current environment? Guess you could set it on the other side of the pipe then output set
 
@Graeme you're still assuming that sed passes null bytes through unscathed
in which case, you might as well assume a null-safe awk and save yourself a lot of trouble
 
What's that mean?
What's the link?
 
have you programmed in C?
C uses the null byte as an end-of-string marker
old Unix utilities just read lines as strings. If a line contains a null byte, it effectively marks the end of that line.
POSIX doesn't require any of the text utilities to cope with null bytes in the input
 
No way. I can interpret some of it - I know null means end though. That's why the subshell will strip it for you. Well, not in ash though.
Zsh that is.
 
zsh is the only usual shell that copes with null bytes in strings
 
1:52 AM
<3 zsh
 
I know. That's why I suggested you try the cat thing in sh. But it doesn't handle the quotes. Still, it gets a lot easier after that.
 
I think `sed` is required to be null safe in this case. The POSIX manual says:

>Escape Sequences and Associated Actions ( '\\', '\a', '\b', '\f', '\r', '\t', '\v' ) shall be written as the corresponding escape sequence; the '\n' in that table is not applicable. Non-printable characters not in that table shall be written as one three-digit octal number (with a preceding backslash) for each byte in the character (most significant byte first).
 
2:06 AM
Probably : sh <<\CMD\n ( tr '\n' '\\n' </proc/environ ) | sed '/^([^=]*).(.*)/s//\1=\x27\2\x27/;s/\\\\n/\n/g'\nCMD\n
 
PSA: I've just added "use this tag for questions not applicable to other distributions" to the end of .
 
That's probably pretty close to getting set equivalent output. Safe the newlines with tr instead of the nulls and let the subshell strip those for you. It's one idea. Still, its much better to do at process launch - then all you have to do is ENV=set and eval it later whenever.
 
sound OK? if so I'd like to add it to other distribution tags (e.g. , , etc.)
 
That's a great idea.
 
ok, I'll add it to the other wikis
I like how @slm is in the top answerers for Debian but he doesn't even use it
 
2:11 AM
Well, he's a very active answerer and its a very active topic, but I appreciate the irony as well.
 
slm
Yes for shame everyone that uses Debian. I've only booted it for the first time ever in the last month or so.
in VM
I've only ever used RH, SuSE, Mandriva, Mandrake, and Slackware
pretty much everything but Debian/Ubuntu. My wife and kids use Ubuntu.
The nicest OS I've seen though is PCLinuxOS
 
@slm <troll>everything but Debian, Ubuntu and the best distribution of all</troll>
you forgot Gentoo and LFS too
 
slm
Yes i forget about Arch
 
but I see your point :P
 
slm
I used Gentoo too
 
2:15 AM
@slm really? how was it?
 
slm
I'm still waiting for it to compile 8-)
 
also: no reason to keep and , right?
 
slm
<rimshot>
gentoo was very nice but building from src was a pain to me
sabayon is a nice compromise
but I like living on contents not islands
 
I really want to try Gentoo, but I'm afraid that I'll like it and then I'll spend way too much time waiting for compilations. #gentoo
 
That reminds me - @Graeme - did you ever get Terminology to come together?
 
2:22 AM
@mikeserv nah, not yet. I built it with the Debian e18 libs but no dice. I turned out that elementary was actually e17, so I compiled that one from source. Still no dice. I think I need to do the whole lot from source. Or just wait until someone gets around to packaging it.
 
slm
@strugee If you like Arch I would assume you'll like Gentoo. The install to me was a pain to get started, not very clear, but it was nice and fast once you took the time to build things. I eventually gave up on it though, the building is just too painful to me
 
I think you do too - they're chatty builds, but super easy.
 
@slm I think so too
 
I want to do something like I did with that btrfs seed / tmpfs hack but as a package manager.
Essentially all a package manager does is tell the filesystem where to put what file. If it could be handled by the filesystem...
Still, I'm way too lazy to see anything like that through.
And dependency tracking of course, I guess, but that could be tracked in the filesystem too.
With subvolumes.
 
@mikeserv I have no idea what you're talking about, because I only vaguely remember you talking about that. but you should look into OSTree
it might be vaguely what you're talking about. I don't know.
 
2:33 AM
@mikeserv, here is the error I get from `terminology`:
`CRI<7081>:elementary elm_win.c:2858 _win_constructor() Software X11 engine creation failed. Trying default.`
Any ideas?
 
holy shit. it happened.
look at MSO:
(aaand that's the same image)
 
@strugee yeah, they are still iron out bugs
if you want rep in MSE, just ask :P
 
@Graeme - mostly that you should just do the whole build.
 
@Braiam :P
 
Sorry. It's just - that's how I did it.
 
2:51 AM
Yeah I would like it to work with as many packaged sources as possible. The more stuff you compile, the more deps you end up having. When they get upgraded, you end up having to recompile. Is a pain in the ass.
 
3:24 AM
I would generally agree, but their builds are pretty self contained.
@Graeme - I found that one post - is it just me or is there pretty much nothing in /proc/1/environ anyway?
 
@slm, I see some pretty backward logic here - unix.stackexchange.com/questions/125155/pattern-matching/…
@mikeserv nope not much there, are you still thinking about parsing enviroments?
 
slm
@Graeme - I would've done it exactly the way you suggested. I asked the OP about it as well. He seems to be having issues with he file sizes though.
 
@slm he probably wants to match in the first column (although I have a feeling he doesn't even realise it). I was just left squinting when he said he didn't want to use grep because of the other solution.
 
slm
@Graeme Yeah that made little sense to me as well
 
Not as if you can add these things called arguments that massively change the way a program behaves or anything.
 
slm
3:31 AM
Jason found a dup anyway, you answered on the dup too 8-)
I don't understand why he's asking how to do this from a perl program either
oh well, slow night when we're fighting over answering these gene Q's 8-)
 
Yeah, been quite slow on here all day today I think. Nevermind, its way past my bed time anyway I was gonna call it a night before I saw that and thought "that's easy". This time though...
0
Q: Downgrade USB 3.0 to USB 2.0 in ubuntu

user2622247I have USB 2.0 device when I plugged this device into the USB 3.0 port of my system then system gets hanged, after researching many of the solutions says that you can downgrade USB 3.0 to USB 2.0. But I didn't get any specific documentation for related to downgrading process. How can I downgrade...

When he says downgrade the ports, is there no way to force the USB 2 driver to be used for a USB 3 port?
 
Of course. Not much? Mine is only TERM=Linux
@Graeme I'm betting that's set by a file.
 
@mikeserv I get a few more than that BOOT_IMAGE is one.
 
@slm - what's in your /proc/1/environ?
BOOT_IMAGE...
I still think my sed thing would do it with any one. But now I'm wondering what the hell is so special about this guys proc/1/environ.
 
slm
BOOT_IMAGE=/vmlinuz-3.13.7-100.fc19.x86_64LANG=en_US.UTF-8RD_TIMESTAMP=1397222729129935 2356578PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
 
3:45 AM
I answered another question of his earlier today. Well...
If you'd call it an answer. It was a man copy/paste.
Now thats useful. Thanks @slm and @Graeme.
 
slm
@Graeme I had the same thought too, but didn't see a way to do this.
@Graeme - lshw shows the drivers being used for the various hardware
on my USB2 only laptop
         configuration: driver=ehci-pci latency=0
 
@slm I'm just wondering what happens if you run an old kernel on a machine with USB 3. Does it fail to recognise the ports at all or does it just treat them like USB 2?
 
slm
The only thing i could conceive of was perhaps the ehci-pci would take switches
               capabilities: usb-2.00
is shown in my output
 
The USB 3 driver is xhci_hcd AFAIK
You could always try hiding the module
 
slm
I don't have any USB 3's handy
You can usually pass options to the drivers, I'm guessing you could tell the xhci_hcd driver to only allow for 2 capabilities
 
3:52 AM
I get all three drivers showing up when I do lspci -v
ohci-pci, ehci-pci and xhci_hcd
I think different ones are used depending on what is plugged in
You could try hiding /lib/modules/3.13-1-amd64/kernel/drivers/usb/xhci-hcd.ko and see what happens.
Anyways, done for today.
 
slm
I don't have these drivers
xhci_hcd
3.13.7-100.fc19.x86_64
 
4:18 AM
@Graeme depends on the application.
Many usb3 applications are actually PCI addons.
Those generally fail entirely.
But truly on-board usb3 applications should be managed to some degree by the firmware and so you'll get USB2 functionality.
@slm's showing off his nearly up to date kernel to all of these Debianers.
I'm still on 3.13 too I think.
 
slm
4:36 AM
I cannot find the module xhci_hcd. Puzzled as to why this would be missing.
 
Do you have usb3?
Don't mean to insult. Its just a habit to ask stupid questions.
 
slm
no i don't
$ sudo modprobe -r xhci_hcd
modprobe: FATAL: Module xhci_hcd is builtin.
Would seem that this module is builtin
 
I meant the hardware.
You might have the other one...
Forget what its called.
 
slm
nope no usb3 hardware
 
Starts with an e I think.
 
4:41 AM
...Ethernet?
 
slm
ehci-pci
 
nevermind
 
Well. Why would you have xhci then?
No. The brand actually.
Ethernet. Haha.
 
slm
Sorry I was looking for the kernel module on disk I wanted to interrogate it to see what capabilities it had (i.e. what options it would accept)
 
Well, do you have the header files? Don't know why modprobe or udev would source it for you if you don't have the hardware. Get the headers though and you should be able to play around with all of the modules.
 
slm
4:45 AM
I like using modinfo <mod> for the param listings
 
4:56 AM
Did it work then? Definitely sorted /proc/$$/environ
Don't know why Gilles thought it wouldn't work, but it handles everything I throw at it.
. <<ENV\n$(sed -rn 'H;${x;s/(^|\x00)([^=]*.)([\x00]*)/\2\x27\3\x27\n/gp}' /proc/self/environ)\nENV\n
Anybody know why that might fail?
It handles terminal escapes and newlines special shell characters for me anyway...
Though it should be . <<ENV /dev/stdin
And the last bit should be [^\x00]*
 
5:30 AM
hmm, Fedora's restructuring looks interesting and promising. blogs.gnome.org/uraeus/2014/04/16/…
@slm ^
anyway, bedtime now. night all.
 
slm
@strugee - thanks for the link, was just reading it, looks interesting
 
 
1 hour later…
7:08 AM
@Graeme no, that's about all the other non-printable characters
Text File

A file that contains characters organized into one or more lines. The lines do not contain NUL characters and none can exceed {LINE_MAX} bytes in length, including the <newline>. Although IEEE Std 1003.1-2001 does not distinguish between text files and binary files (see the ISO C standard), many utilities only produce predictable or meaningful output when operating on text files. The standard utilities that have such restrictions always specify "text files" in their STDIN or INPUT FILES sections.
 
 
6 hours later…
1:03 PM
Does anyone have any idea about this?
1
Q: how can I change what the command "apt-get update" looks for when executing the update?

Space GhostForgive my incompetence I am still new to GNU/Linux. I use Debian wheezy. When I type apt-get update I get this at the end W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/wheezy/main/source/Sources 404 Not Found W: Failed to fetch http://ppa.launchpad.net/webupd8...

There is a launchpad source that is showing up in apt-cache policy and apt-get update, but the poster claims it is not there in /etc/apt/sources.list and /etc/apt/sources.list.d.
 
1:17 PM
@FaheemMitha posted something
 
1:46 PM
@Braiam Doing a grep makes sense.
As @Braiam, suggests, try doing a grep. I'd actually suggest just a grep -Ri launchpad /etc/apt/. — Faheem Mitha 38 secs ago
As @Braiam, suggests, try doing a grep. I'd actually suggest just a grep -Ri launchpad /etc/apt/. Or even cd /etc/apt. And then grep -Ri launchpad *. — Faheem Mitha 2 mins ago
 
2:02 PM
All, I am about to board a plane and can't help with this Q which I caused to be migrated here, could somebody have a look?
1
Q: SSH Write Failed: Broken Pipe

emisferaI used to be able to connect via ssh (terminal) with the user I have created but now I keep getting: "Write Failed: Broken Pipe" and I can only connect as root In the ssh auth.log I get the following: Accepted password for username from 100.10.10.10 port 49999 ssh2 pam_unix(sshd:session): sessio...

 
@terdon the answer
 
 
1 hour later…
3:16 PM
@terdon Going somewhere?
 
3:26 PM
@mikeserv so you're a Red Dwarf fan too?
 
4:23 PM
2
Q: What does exit 99 means?

Java_AlertI'm new to Unix. Just want to know what is exit 99 and why would one use it and what are the significance uses of it. For example, I'm using exit 99.

saw this in the hot questions list and I was really excited for it to be super interesting but it's actually just the dumbest question
 
4:44 PM
@FaheemMitha I just finished Cryptonomicron
 
4:56 PM
@casey How was it?
 
I think it kinda went off the rails at the end. I liked it though. It was interesting how all of the characters were linked, but not sure I'd be a fan of more than that after looking at the bundled excerpt of the Baroque Cycle in my ebook.
@FaheemMitha I liked anathem better.
 
5:13 PM
@casey I see.
@casey ever tried Vernor Vinge?
@mikeserv I think that should be Debianistas.
 
@FaheemMitha nope
 
@casey Ah. Well, Marooned in Real Time is a pretty good novel.
Marooned in Realtime is a 1986 murder mystery and time-travel science fiction novel by American writer Vernor Vinge, about a small, time-displaced group of people who may be the only survivors of a technological singularity or alien invasion. It is the sequel to The Peace War (1984) and "The Ungoverned" (1985). Both novels and the novella were collected in Across Realtime. Marooned in Realtime won the Prometheus Award in 1987 and was also nominated for the Hugo Award for Best Novel that same year. Plot summary In the story, a device exists which can create a "bobble", a spherical ...
And Fire Upon the Deep is also pretty good. And pretty famous.
 
 
2 hours later…
7:34 PM
@FaheemMitha : I do like Red Dwarf, though its been a couple years since I last looked at it. I'm also a Mighty Boosh fan.
 
@mikeserv Ah. I don't know Boosh. I think I watched the first episode because of that guy who is also in the IT Crowd - Noel Fielding. I was not impressed.
 
Yeah. Fielding. In the IT Crowd he was - dang, I forget his name... Norman? The guy in the basement with the blinking lights... Who let Norbert out?
The Boosh very weird.
But it was the first episode that hooked me - in the scene with the boss he's listening to that song from the Snatch soundtrack - I was wa-alking down the street... I DON'T like reggae (oh no) I LOVE IT! (oh yeah)....
I'd only ever heard it in my friend's car when we'd cruise around as teenagers and he'd put on the sound track, but I always liked it. Then I heard it again in the show and it was an instant favorite. That kind of subliminal familiarity, I think, can make a world of difference where preference is concerned.
 
7:50 PM
@mikeserv Richmond
 
Right.
 
@mikeserv Interesting. Wasn't the first episode some ridiculous thing set in a zoo, featuring a punching match with a kangaroo, or something mad like that?
 
Yes.
Something mad like that.
Fielding's Moon is a pretty funny skit.
 
Yes, that's the only thing I've watched. Having said that, I remember clearly my reaction to watching the first episode of Red Dwarf, which is that a bunch of high schoolers could make a better skit than that.
I thought it was the lamest, most unconvincing attempt at sci-fi tv that I had ever seen. But it got better.
 
7:55 PM
Fielding is really one of those people who seems born to do comedy though. He even has the right kind of face.
 
Oh man, did it!
I liked their silly songs.
 
@mikeserv Yes, especially tongue-tied.
 
I like Tenacious D, Boosh, Flight of the Conchords, They Might Be Giants all for the same reasons - they're funny and musical.
It's not just entertainment, it's inspired. Or, at least, that's my take.
I've got like 30 some tags for bash and similar but I don't think I've ever even written a bash script.
 
Hi all, what is the difference between /etc/fstab and /etc/inittab?
 
8:18 PM
@mikeserv I don't know any of those.
@Ramesh They're different things. What is your question, exactly?
 
@FaheemMitha, during initial bootup will the Linux system read the contents from /etc/fstab file or /etc/inittab file to mount the file system?
 
@Ramesh the former. the latter is to do with runlevels.
To be honest, I don't even know what /etc/inittab does. I haven't given it a moment's thought before now. But I basically never think about init stuff, though it does seem to exercise some people very much.
 
@FaheemMitha, when will the system determine the runlevels using /etc/inittab? I mean, the bootup process is something like, from BIOS -> GRUB -> init
 
slm
@FaheemMitha - a configuration file to init
 
@slm any particular kind of init?
@Ramesh no idea.
 
8:23 PM
 
Even if I need to have my external hdd mounted at system startup I edit only /etc/fstab file. I have tried /etc/inittab file.
 
slm
@FaheemMitha - the init process
/sbin/init
This line controls the runlevel
id:3:initdefault:
All this is being replaced by systemd
 
@slm, so /etc/inittab is called even before the call to /etc/fstab file is made, is it?
 
slm
I believe /etc/fstab is parsed a variety of times by various services as the mounts present in the file are created
From a CentOS 6 system
$ grep /etc/fstab /etc/init.d/*
/etc/init.d/functions:    done < /etc/fstab
/etc/init.d/netfs:NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
/etc/init.d/netfs:CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
/etc/init.d/netfs:NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
/etc/init.d/netfs:NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)
@Ramesh - so to answer your question yes i believe it is called before
the contents of fstab has to be dealt with in pieces given certain services may need to be started prior to a line in it being acted upon
 
@slm, thanks for the clarification :)
 
8:30 PM
@slm this is for the current runlevel thing that debian uses, whatever it is called?
 
slm
Good read on what happens here from the CentOS 5 docs
Debian/Ubuntu use the runlevels in a different way but the approach is all the same
 
8:46 PM
:15019387 what is the background of this video?
@mikeserv This one, I guess.
 
as seen in The Comms Room:
in The Comms Room, 4 hours ago, by Pato Sáinz
breaking news! Canonical fucks shit up again by not respecting upstream
 
How does Canonical even track upstream? In a Debian <> Ubuntu waterworks that's one funky gravity flow.
@FaheemMitha - When will you Die?
 
@mikeserv yes
 
That's what's so weird about that one.
 
I mean, does it come from a tv show or something? i'm talking about context.
 
8:50 PM
You might have heard them do the Malcolm in the Middle theme, or in Tiny Toons doing Particle Man or Istanbul (not Constantinople).
They're really friendly.
They did strictly kid's music for like a six year stint.
 
@mikeserv In what sense friendly?
 
@mikeserv apparently, they track it poorly
 
So that last one When Will You Die was strange for them John - there are two - said he was just kind experimenting with the idea of a mean song and people kept saying meaner. So he did it.
He swears up and down it's not about anybody.
My son and I watch this stuff on youtube together all the time. But I've been listening to them since I was in the single digits.
Like I said - Tiny Toons.
 
9:09 PM
Does anyone know what @ECarterYoung is talking about on this answer: unix.stackexchange.com/a/125230/4358
 
Faheem?
@Faheem Mitha you are ping'd
 
@MERM Hi
Sorry, you been waiting long? I was afk
Anyway, try running apt-show-versions and grep for testing or unstable.
 
No prob. I need to go afk in a few min to go teach a class, but since I have you I'll be a little late to get some clarity
ok
 
@MERM i generally keep a tab with this room open, so you can just send me a message whenever. but don't forget to do the @ prefix.
 
apt-show-versions | egrep -i "(testing|unstable)"
-bash: apt-show-versions: command not found
 
9:15 PM
@MERM yes, you need to install that.
Install command-not-found while you are about it.
 
yes, but there is the problem
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
apt-show-versions : Depends: libapt-pkg-perl (>= 0.1.21) but it is not going to be installed
libglib2.0-dev : Depends: libglib2.0-0 (= 2.24.2-1) but 2.40.0-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
 
@MERM hah
@MERM ok, the basic apt-show-versions is just a python script. you could just stick it in your local bin
perl, sorry
 
ok, I'll install on another system (newer that works) and move it there
 
@MERM or you could just unpack the deb and copy it in
@MERM ok, hang on a sec. before you do anything else, paste the output of apt-cache policy in your question
 
./apt-show-versions | egrep -i "(testing|unstable)"
Can't locate AptPkg/Cache.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./apt-show-versions line 43.
BEGIN failed--compilation aborted at ./apt-show-versions line 43.
apt-cache policy nis libglib2.0-dev libglib2.0-0 libdbus-glib-1-2 libslp1
libglib2.0-0:
Installed: 2.40.0-2
Candidate: 2.40.0-2
Version table:
*** 2.40.0-2 0
500 http://ftp.us.debian.org/debian/ unstable/main amd64 Packages
100 /var/lib/dpkg/status
libdbus-glib-1-2:
Installed: (none)
Candidate: 0.102-1
Version table:
0.102-1 0
500 http://ftp.us.debian.org/debian/ unstable/main amd64 Packages
libglib2.0-dev:
Installed: 2.24.2-1
Candidate: 2.40.0-2
Version table:
2.40.0-2 0
500 http://ftp.us.debian.org/debian/ unstable/main amd64 Packages
 
9:19 PM
@MERM wow, that looks like a mess. how important is it to recover this system?
@MERM no, just apt-cache policy. nothing afterwards
 
there are 60 or so machines like this spread over 3 sites :(
 
@MERM are they all identically configured?
 
apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://security.debian.org/ stable/updates/main Translation-en
500 http://security.debian.org/ stable/updates/main amd64 Packages
release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=main
origin security.debian.org
500 http://ftp.us.debian.org/debian/ unstable/main Translation-en
500 http://ftp.us.debian.org/debian/ unstable/main amd64 Packages
release o=Debian,a=unstable,n=sid,l=Debian,c=main
origin ftp.us.debian.org
 
@MERM are you an academic?
500 ftp.us.debian.org/debian unstable/main Translation-en
500 ftp.us.debian.org/debian unstable/main amd64 Packages
 
more or less configured the same. admin'd by different people ver time.
 
9:21 PM
You need to drop the preference number down. I recommend 50
 
No business. I was hired to clean up
 
Do you have a /etc/apt/preferences file? or anything in /etc/apt/preferences.d?
 
ok where do I do this?
let me see
 
@MERM add the output of apt-cache policy to your question
 
no /etc/apt/preferences file, and the /etc/apt/preferences.d is empty
done
 
9:25 PM
@MERM Ok, add the following to /etc/apt/preferences
Package: *
Pin: release a=testing
Pin-Priority: 50

Package: *
Pin: release a=unstable
Pin-Priority: 50
 
cat sources.list
#deb http://ftp.us.debian.org/debian/ stable main
#deb-src http://ftp.us.debian.org/debian/ stable main

deb http://ftp.us.debian.org/debian/ unstable main
deb-src http://ftp.us.debian.org/debian/ unstable main

# Line commented out by installer because it failed to verify:
deb http://security.debian.org/ stable/updates main
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/ stable/updates main
ok, 1 sec
 
Now, when you run apt-cache policy, you should see the unstable lines lowered to 50
 
apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://security.debian.org/ stable/updates/main Translation-en
500 http://security.debian.org/ stable/updates/main amd64 Packages
release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=main
origin security.debian.org
500 http://ftp.us.debian.org/debian/ unstable/main Translation-en
50 http://ftp.us.debian.org/debian/ unstable/main amd64 Packages
release o=Debian,a=unstable,n=sid,l=Debian,c=main
origin ftp.us.debian.org
 
@MERM you want the security lines
@MERM did you add those lines?
 
yes
 
9:26 PM
@MERM ok. not sure why
500 ftp.us.debian.org/debian unstable/main Translation-en
is still at 500, but i think that is ok.
@MERM ok, try installing apt-show-versions again.
 
I need to copy over the perl libs too.
# ./apt-show-versions | egrep -i "(testing|unstable)"
Can't locate AptPkg/Cache.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./apt-show-versions line 43.
BEGIN failed--compilation aborted at ./apt-show-versions line 43.
 
@MERM yes, looks like you have some locally installed perl in there. why is that?
what does
dpkg -l | grep perl
show?
 
Thanks for you help, but I have to go for now. I'd really like to work with you on this, but I haev a 45 min drive to make in a half hour or my students will be upset
ENC01_root 26 # dpkg -l | grep perl
ii libalgorithm-diff-perl 1.19.02-2 module to find differences between files
ii libalgorithm-diff-xs-perl 0.04-1 module to find differences between files (XS accelerated)
ii libalgorithm-merge-perl 0.08-2 Perl module for three-way merge of textual data
ii libarchive-zip-perl 1.30-3 Perl module for manipulation of ZIP archives
 
@MERM No problem. Ping me later. I'm probably in a different time zone from you, so I may not respond for a while.
 
I didn't create this system
 
9:29 PM
@MERM ok
 
ok thanks, what timezone are you in?
 
@MERM Indian Standard Time
 
ok
afk
 
@MERM ok, I may be misreading. maybe there is no locally installed perl there. it is just doing a path search and not finding the perl libraries. try doing a apt-get install apt-show-versions.
 
apt-get install apt-show-versions
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
apt-show-versions : Depends: libapt-pkg-perl (>= 0.1.21) but it is not going to be installed
libglib2.0-dev : Depends: libglib2.0-0 (= 2.24.2-1) but 2.40.0-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I'll manually copy the perl libs over later
see ya
 
9:33 PM
@MERM take care.
@MERM Don't manually copy the perl libs over. Try to fix these errors instead, first.
run apt-cache policy apt libapt-pkg-perl libglib2.0-dev libglib2.0-0
 
10:13 PM
@slm, is it safe to rename the run control scripts inside /etc/init.d folder?
 
slm
10:38 PM
@Ramesh - not typically, that directory is under control of either systemd, upstart, or on RedHat distros using a tool such as chkconfig.
 
@slm, ok, Thanks for the info :)
 
00:00 - 23:0023:00 - 00:00

« first day (1286 days earlier)      last day (3651 days later) »