SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-06-12 20:59:14

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

[Solved] upgrade to testing half worked

I followed the 1st post of this thread http://crunchbanglinux.org/forums/topic … ng/page/3/ to upgrade to testing.
There was an error at the very end, all about /var/cache/apt/archives mentioning slim, libavtools and tint2 (can't paste output because usb doesn't mount on that machine now). Also E: Sub-process /usr/bin/dpkg returned an error code (1).
After the upgrade I couldn't reboot nor shutdown. Not with the gui nor with terminal, so I cold started.
Now I can't mount a usb stick (or at least the machine doesn't see it - I don't know how to mount in terminal).
I don't have internet and I haven't seen yet what else might be wrong roll

To start off, is there a way to check why the internet (desktop pc) isn't working anymore?

Last edited by catch22 (2012-06-22 22:18:34)


#!+mocp=music in my ears

Offline

Be excellent to each other!

#2 2012-06-12 21:10:59

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: [Solved] upgrade to testing half worked

Would you do me a little favor? Could you download the latest testing version (waldorf) from here and try the live session to see if it fixes your problems? If you really want to continue troubleshooting your upgrade people will be glad to help you, but it might be as simple as a reinstall at this point, even though I hate to recommend that after everything you've tried already.

But trying the live session can't hurt, right? smile

Offline

#3 2012-06-12 21:16:45

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

pidsley wrote:

Would you do me a little favor? Could you download the latest testing version (waldorf) from here and try the live session to see if it fixes your problems? If you really want to continue troubleshooting your upgrade people will be glad to help you, but it might be as simple as a reinstall at this point, even though I hate to recommend that after everything you've tried already.

But trying the live session can't hurt, right? smile

I can't get a waldorf live cd at this moment since the desktop doesn't have internet and this netbook doesn't have a cd writer neutral
I'll see that I can get one later this week.


#!+mocp=music in my ears

Offline

#4 2012-06-12 21:20:49

frankob
#! CrunchBanger
From: Croatia
Registered: 2012-06-08
Posts: 204
Website

Re: [Solved] upgrade to testing half worked


Omnia sunt communia.

Offline

#5 2012-06-12 21:31:31

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

frankob wrote:

That looks feasable. It'll be for tomorrow evening though; netbook is not crashing, but I am almost, for today wink
Thanks for both your replies; makes me sleep better knowing there's always this super forum to get help from smile


#!+mocp=music in my ears

Offline

#6 2012-06-12 21:32:34

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: [Solved] upgrade to testing half worked

Get some sleep -- we can fix it tomorrow...

Offline

#7 2012-06-12 23:34:23

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,423

Re: [Solved] upgrade to testing half worked

Ok, let the game begin. big_smile

First a looky at your sources.list? You already wheezied everything and the default release is Testing/Wheezy now, not Statler? You also disabled everything Squeeze/Statler? I guess yes.

Have you also tried this steps, usually they help if you cannot upgrade your system like in your case with error messages:

dpkg --configure -a
apt-get install -f

and then try again with:

apt-get dist-upgrade

Offline

#8 2012-06-13 19:52:55

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

The reason why I decided to try testing was a minor breakage in Thunar. I got great help there from xaos52 and he left another suggestion in that thread for trying to get the internet to work again. http://crunchbanglinux.org/forums/post/232039/?login=1

Meanwhile I did get the Crunchbang11 on usb but can't get it to boot. Tried all sorts of settings in BIOS but it keeps coming to hard disk.

The suggested dpkg-commands don't work because I can't sudo neutral
I think I'd better wait a bit for xaos52 reaction in the former thread; I suggested continuing here because working on one thing in 2 threads would make my head spin anyway wink


#!+mocp=music in my ears

Offline

#9 2012-06-14 08:42:13

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [Solved] upgrade to testing half worked

Hi Ludo,
Seems like you are in a real catch-22 situation here.

We need to restore sudo capability to your system.
The usual way to do this is boot from live CD or live USB, then chroot into the installed system, but it seems none of those work here.

2 questions:
(1) When you try to boot from USB, does the led flicker? Do you get a flickering cursor on your screen, followed after some  time by the GRUB boot menu. Is there a message displayed in between?

(2) What command did you use to transfer the ISO image to the USB key?
You should use the dd command, and copy to the entire device, not to a partition.
When the key is automounted, you should umount int manually, and then use the dd command.

Waiting for your answers to decide on how to continue.

Offline

#10 2012-06-14 16:11:55

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

A little light in the tunnel; I got the Waldorf iso on CD and that boots smile
Unfortunately I've got to go to a rehearsal tonight and won't be able to attend to this until another 24 hours from now roll At least there's some progress already smile

EDIT more good news - internet works in the live cd cool

Last edited by catch22 (2012-06-14 16:19:03)


#!+mocp=music in my ears

Offline

#11 2012-06-14 16:45:21

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [Solved] upgrade to testing half worked

Just shout when you are ready smile

Offline

#12 2012-06-15 07:03:43

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,502

Re: [Solved] upgrade to testing half worked

For posterity ...

Seems the syntax for visudo has changed a bit in the testing package. Don't ask me why, but seems the case. When someone upgrades sudo, along the way, they should be asked ... Keep current file or install the one from the package maintainer. If you do that, your visudo file gets overwritten and you'll need to re-edit the sucker to add your user again.

For whatever reason this> ALL=(ALL) ALL older visudo, has become this now> ALL=(ALL:ALL) ALL
And this ALL=(ALL) NOPASSWD: transformed to ALL=(ALL:ALL) NOPASSWD:


I've done it both ways, upgraded sudo to testing, installed maintainers version. Then added my user back (as above.) Also tried it with keeping the older file and sudo started acting weird on me, so did ... as root/su ... "apt-get remove --purge sudo" and then just reinstalled it and edited the visudo file afterwards. Agree you're in a strange situation, w/o sudo Xao's kickbutt chroot how to becomes null. This topic was recently discussed in crunch-central. With a buncha of the knowledgeable nixers here advising folks that it's a good idea to have a root acct in case sudo ever breaks.

No surprise, turns out they were righto. When next somebody gets #! up and running, might want to go ahead and setup a root user for strange occasions like this.


end babble: smile

Last edited by CBizgreat! (2012-06-15 07:05:55)


Some common cbiz abbreviations. This will save me time and yet @ same time tell folks what the babble is supposed to mean.

Vll ! = ( Viva la gnu/Linux !)    Vl#!! = ( Viva la #! !)    Last but not least, UD ... OD ! = ( Use Debian ... or die !) tongue

Offline

#13 2012-06-15 18:24:53

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

xaos52 wrote:

Just shout when you are ready smile

READY tongue


#!+mocp=music in my ears

Offline

#14 2012-06-15 19:52:21

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [Solved] upgrade to testing half worked

Hi Ludo,

I suppose You can boot from Live CD on the system where #! testing is installed.

WARNING: Assumption: #! is installed on /dev/sda1. If that is not the case, you will have to replace sda1 by the correct device name in all following commands.

Goal: activate root password and enable sudo for your user.

Here goes:
boot from livecd or usb
in terminal window:

TARGET=/media/sda1
sudo mkdir -p $TARGET
sudo mount /dev/sda1 $TARGET
sudo mount --bind /dev     $TARGET/dev
sudo mount --bind /dev/pts $TARGET/dev/pts
sudo mount --bind /proc    $TARGET/proc
sudo mount --bind /sys     $TARGET/sys
sudo chroot $TARGET /bin/bash

This places you in a root terminal on the #! system

(1) activate root password

passwd

enter your root password twice

(2) make your normal user part of the 'sudo' group:
I am supposing that your normal user on the system is 'ludo'. If not, change accordingly

gpasswd -a ludo sudo

Thats it!
To exit from chroot:

control-D

This brings you back to where you were in the live session and you can unmount

sudo umount -l $TARGET/dev/pts
sudo umount -l $TARGET/dev
sudo umount -l $TARGET/proc
sudo umount -l $TARGET/sys

Thats it...
Reboot into the #! system on disk.

Your root user should be activated, and user 'ludo' should be part o the sudo group, and thus be able to use sudo.
You can check if that is so by running the command

id

in a terminal.
The output should show that you are a member of the sudo group.

hth

Last edited by xaos52 (2012-06-15 19:53:36)

Offline

#15 2012-06-15 20:30:21

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

xaos52 wrote:

Hi Ludo,

I suppose You can boot from Live CD on the system where #! testing is installed.

WARNING: Assumption: #! is installed on /dev/sda1. If that is not the case, you will have to replace sda1 by the correct device name in all following commands.

Yes the live-cd works %with US keyboard - typing carefully wink
I tried running gparted to see if the system is on sda1 or not but I need to be root for that also roll
I will search for some command to determine what it is.
EDIT looked in etc/fstab and saw it is sdb1
followed your guidelines and am about to reboot...:cool:

Last edited by catch22 (2012-06-15 20:46:08)


#!+mocp=music in my ears

Offline

#16 2012-06-15 20:58:58

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

catch22 wrote:

...looked in etc/fstab and saw it is sdb1
followed your guidelines and am about to reboot...:cool:

okido, thanks xaos52, that worked; "id" gave quite some output that I don't understand, but entering "su" does get me into root account smile
I'll be online again tomorrow - maybe we can get to the next step to proceed then - so far so good smile


#!+mocp=music in my ears

Offline

#17 2012-06-15 21:07:55

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [Solved] upgrade to testing half worked

I am sure we can fix things.

Offline

#18 2012-06-16 08:38:24

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

I'll be online off and on during the daytime today.

I should've thought of this and mentioned it before: I dual boot with Xubuntu and can reach the #! files via that way also cool
It may even be handier and faster than with the live cd?


#!+mocp=music in my ears

Offline

#19 2012-06-16 10:18:49

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [Solved] upgrade to testing half worked

Yes.
There is an an even easier way:

(1) Download the latest live image - the ISO image, not the zip file - from clonezilla for your architecture
(2) Copy the ISO file to /boot/images/ - create that dir first if it does not exist
(3) Install the package grub-imageboot if you have not installed it already
sudo apt-get install grub-imageboot
(4) boot into #! on disk
(5) sudo update-grub
This should add an entry into the GRUB menu that allows you to boot from the ISO image

The purpose of clonezilla is mainly to create disk or partition images, but you can also use it as a general recovery tool, though it doe not come with all the programs grmbl comes with.

Do remind me of what problems are remaining.

Offline

#20 2012-06-16 10:43:11

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

xaos52 wrote:

...(2) Copy the ISO file to /boot/images/ - create that dir first if it does not exist
(3) Install the package grub-imageboot if you have not installed it already
sudo apt-get install grub-imageboot
...
Do remind me of what problems are remaining.

ok, so I do this from within Xubuntu, downloading the clonezilla ISO file and put it in /boot/image on the disk where #! resides, correct?

Can I safely install the grub-imageboot from within Xubuntu as well, or is it safer to then first boot up with the live cd and do it from there? (Just thinking Xubuntu might want to take over grub?)

Remaining problems that come to mind: internet (wired) connection not working and no sudoers file found (su does work)


#!+mocp=music in my ears

Offline

#21 2012-06-16 10:51:24

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [Solved] upgrade to testing half worked

It depends on where - for which system - you ran grub-install the last time.
You can tell by the order of the menu items in GRUB:
if the #! entries are first, then you are currently using the #! grub install, else you are using the Xubuntu grub install.

(1) post output of lspci when booted in #!
(2) Try re-installing the sudoers package: switch to a virtual console: Ctrl+Alt+F2
login as root

apt-get --reinstall install sudo

Then check output of

dpkg -L sudo | grep sudoers

You should have a sudoers file now.

hth

Last edited by xaos52 (2012-06-16 10:52:38)

Offline

#22 2012-06-16 11:13:05

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

xaos52 wrote:

...(1) post output of lspci when booted in #!...

crunchbang@crunchbang:~$ lspci
00:00.0 Host bridge: NVIDIA Corporation nForce3 250Gb Host Bridge (rev a1)
00:01.0 ISA bridge: NVIDIA Corporation nForce3 250Gb LPC Bridge (rev a2)
00:01.1 SMBus: NVIDIA Corporation nForce 250Gb PCI System Management (rev a1)
00:02.0 USB controller: NVIDIA Corporation CK8S USB Controller (rev a1)
00:02.1 USB controller: NVIDIA Corporation CK8S USB Controller (rev a1)
00:02.2 USB controller: NVIDIA Corporation nForce3 EHCI USB 2.0 Controller (rev a2)
00:05.0 Bridge: NVIDIA Corporation CK8S Ethernet Controller (rev a2)
00:08.0 IDE interface: NVIDIA Corporation CK8S Parallel ATA Controller (v2.5) (rev a2)
00:0a.0 IDE interface: NVIDIA Corporation nForce3 Serial ATA Controller (rev a2)
00:0b.0 PCI bridge: NVIDIA Corporation nForce3 250Gb AGP Host to PCI Bridge (rev a2)
00:0e.0 PCI bridge: NVIDIA Corporation nForce3 250Gb PCI-to-PCI Bridge (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: NVIDIA Corporation NV40.2 [GeForce 6800 LE] (rev a1)
02:07.0 RAID bus controller: Silicon Image, Inc. PCI0680 Ultra ATA-133 Host Controller (rev 02)
02:08.0 Multimedia audio controller: Creative Labs CA0106 Soundblaster
02:0a.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev 46)

#!+mocp=music in my ears

Offline

#23 2012-06-16 11:55:21

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

xaos52 wrote:

...(3) Install the package grub-imageboot if you have not installed it already
sudo apt-get install grub-imageboot
...

I'm kind of stuck here; the machine doesn't seem to want to boot from the live cd anymore, so I can't install grub-imageboot hmm
EDIT: tried at least a dozen times and checked rechecked BIOS settings.
Last time it did work BTW (an hour ago or so) and I went into ctrl alt F2 I couldn't log as root. I know the passwd for the live cd is "live" but it ddin't work.
So is there any way I can install the grub-imageboot from within Xubuntu, where I can access all the #! files?

Last edited by catch22 (2012-06-16 12:24:23)


#!+mocp=music in my ears

Offline

#24 2012-06-16 15:53:21

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [Solved] upgrade to testing half worked

Strange.

Yes it should be possible to boot into Xubuntu, and then chroot to the #! install.

But first can you tell me which entries in GRUB come first, the #! entries or the Xubuntu entries?
Or do you only have the Xubuntu entries?

Offline

Help fund CrunchBang, donate to the project!

#25 2012-06-17 11:20:40

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: [Solved] upgrade to testing half worked

xaos52 wrote:

Strange.

Yes it should be possible to boot into Xubuntu, and then chroot to the #! install.

But first can you tell me which entries in GRUB come first, the #! entries or the Xubuntu entries?
Or do you only have the Xubuntu entries?

That's the #! entries. Most recent, for the record, is 3.2.0-0.bpo.2-686-pae


#!+mocp=music in my ears

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo