SEARCH

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

You are not logged in.

#1 2013-04-05 16:17:13

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

[SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

anonymous@debian:~$ cb-welcome
Error: must be a member of the sudo group to run this script.
anonymous@debian:~$ sudo cb-welcome
[sudo] password for anonymous: 
mkdir: cannot create directory `/home/root/.config/crunchbang': No such file or directory
touch: cannot touch `/home/root/.config/crunchbang/cb-welcome': No such file or directory
Error: must be a member of the sudo group to run this script.
anonymous@debian:~$ 

Last edited by kevin_scribner (2013-04-05 21:16:33)


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

Help fund CrunchBang, donate to the project!

#2 2013-04-05 17:32:55

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

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

I suspect there is no problem.
The last update && dist-upgrade went well, only there was nothing to upgrade.
Your system seems to be up-to-date.

The package 'nload' not being found was probably because you had not run update before.
Try it again and it should work now.

You are able to use sudo, so I suspect you are member of the 'sudo' group.

Edit  /etc/hostname  as root to permanently change your hostname.
run the command

sudo hostname

and edit /etc/hosts as well - replace the old hostname by the new one.

If your prompt has not changed, log out and back in to make it effective.

Offline

#3 2013-04-05 18:01:10

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#4 2013-04-05 18:08:44

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

heya --

i forgot to add this to the original post, what happens when i try to run either:

cb-welcome

or

cb-welcome --firstrun

either with or without sudo, or from root after "su -"

anonymous@anonymous:~$ sudo cb-welcome --firstrun
[sudo] password for anonymous: 
mkdir: cannot create directory `/home/root/.config/crunchbang': No such file or directory
touch: cannot touch `/home/root/.config/crunchbang/cb-welcome': No such file or directory
anonymous@anonymous:~$ 

maybe that will shed some light on things...?

peace --

-- khs

Last edited by kevin_scribner (2013-04-05 19:05:43)


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#5 2013-04-05 18:20:37

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

Why is it trying to write to /home/root instead of your username, I wonder?

Last edited by snowpine (2013-04-05 18:21:52)

Offline

#6 2013-04-05 18:25:43

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

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

cb-welcome should be run as your normal user, not with sudo nor with su.

Post your sources.list, will you. It isn't normal that the 'cdrom' sources are still active:

sudo cat /etc/apt/sources.list 

Last edited by xaos52 (2013-04-05 18:28:08)

Offline

#7 2013-04-05 18:28:37

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

By the way, what is your

cat /etc/apt/sources.list

I don't see "main" repo in your apt-get update. Looks like it's trying to install stuff from the CD-ROM.

Last edited by snowpine (2013-04-05 18:29:46)

Offline

#8 2013-04-05 18:32:28

fatmac
#! Die Hard
Registered: 2012-11-14
Posts: 1,948

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

Check your /etc/apt/sources.file to make sure you are able to use internet repos, as it seems to only be looking for debs on cdrom.

Offline

#9 2013-04-05 19:11:40

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

anonymous@anonymous:~$ sudo cat /etc/apt/sources.list
[sudo] password for anonymous: 
# 

# deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official Snapshot i386 LIVE/INSTALL Binary 20130119-13:06]/ wheezy contrib main non-free

deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official Snapshot i386 LIVE/INSTALL Binary 20130119-13:06]/ wheezy contrib main non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
anonymous@anonymous:~$ 

> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#10 2013-04-05 19:16:16

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#11 2013-04-05 19:17:30

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

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

Replace the complete content of your /etc/apt/sources.list by this:

## CRUNCHBANG
## Compatible with Debian Wheezy, but use at your own risk.
deb http://packages.crunchbanglinux.org/statler statler main
# deb-src http://packages.crunchbanglinux.org/statler statler main

## DEBIAN
deb http://http.debian.net/debian squeeze main contrib non-free
deb-src http://http.debian.net/debian squeeze main contrib non-free

## DEBIAN SECURITY
deb http://security.debian.org/ squeeze/updates main contrib non-free
# deb-src http://security.debian.org/ squeeze/updates main contrib non-free

Then run

sudo apt-get update && sudo apt-get dist-upgrade

After that you should be able to install packages again.

Last edited by xaos52 (2013-04-05 19:26:13)

Offline

#12 2013-04-05 19:30:14

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

hey --

xaos53:  i did as directed, and voila!

so, i got:

anonymous@anonymous:~$ sudo apt-get update && sudo apt-get upgrade
[sudo] password for anonymous: 
Ign http://dl.google.com stable InRelease
Hit http://dl.google.com stable Release.gpg                                    
Hit http://dl.google.com stable Release                                        
Hit http://security.debian.org wheezy/updates InRelease                        
Hit http://dl.google.com stable/main i386 Packages                             
Hit http://security.debian.org wheezy/updates/main i386 Packages               
Hit http://security.debian.org wheezy/updates/contrib i386 Packages            
Hit http://security.debian.org wheezy/updates/non-free i386 Packages           
Get:1 http://http.debian.net wheezy InRelease [224 kB]                         
Get:2 http://http.debian.net wheezy/main Sources [5,990 kB]                    
Get:3 http://http.debian.net wheezy/non-free i386 Packages [77.5 kB]           
Get:4 http://http.debian.net wheezy/contrib Sources [47.8 kB]                  
Get:5 http://http.debian.net wheezy/non-free Sources [93.4 kB]                 
Get:6 http://http.debian.net wheezy/contrib Translation-en [34.8 kB]           
Get:7 http://http.debian.net wheezy/main i386 Packages [5,867 kB]              
Err http://packages.crunchbang.org waldorf InRelease                           
  
Err http://packages.crunchbang.org waldorf Release.gpg                         
  Could not resolve 'packages.crunchbang.org'
Get:8 http://http.debian.net wheezy/contrib i386 Packages [42.3 kB]                                                           
Ign http://dl.google.com stable/main Translation-en_US                                                                        
Ign http://dl.google.com stable/main Translation-en                   
Ign http://security.debian.org wheezy/updates/contrib Translation-en_US
Ign http://security.debian.org wheezy/updates/contrib Translation-en
Ign http://security.debian.org wheezy/updates/main Translation-en_US
Ign http://security.debian.org wheezy/updates/main Translation-en
Ign http://security.debian.org wheezy/updates/non-free Translation-en_US
Ign http://security.debian.org wheezy/updates/non-free Translation-en
Get:9 http://http.debian.net wheezy/non-free Translation-en [66.0 kB]
Err http://http.debian.net wheezy/main Translation-en          
  
Err http://http.debian.net wheezy/main Translation-en          
  
Err http://http.debian.net wheezy/main Translation-en  
  
Err http://http.debian.net wheezy/main Translation-en                                                                         
  404  Not Found
Fetched 12.4 MB in 2min 20s (88.5 kB/s)                                                                                       
Reading package lists... Done
W: Failed to fetch http://packages.crunchbang.org/waldorf/dists/waldorf/InRelease  

W: Failed to fetch bzip2:/var/lib/apt/lists/partial/http.debian.net_debian_dists_wheezy_main_source_Sources  Hash Sum mismatch

W: Failed to fetch bzip2:/var/lib/apt/lists/partial/http.debian.net_debian_dists_wheezy_main_binary-i386_Packages  Hash Sum mismatch

W: Failed to fetch http://http.debian.net/debian/dists/wheezy/main/i18n/Translation-en  404  Not Found

W: Failed to fetch http://packages.crunchbang.org/waldorf/dists/waldorf/Release.gpg  Could not resolve 'packages.crunchbang.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  intel-microcode
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 428 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://http.debian.net/debian/ wheezy/non-free intel-microcode i386 1.20130222.1 [428 kB]
Fetched 428 kB in 2s (195 kB/s)          
(Reading database ... 91882 files and directories currently installed.)
Preparing to replace intel-microcode 1.20120606.v2.2 (using .../intel-microcode_1.20130222.1_i386.deb) ...
Unpacking replacement intel-microcode ...
Setting up intel-microcode (1.20130222.1) ...
Using per-core interface to update microcode on online processors...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-4-486
anonymous@anonymous:~$ 

which is much more in line with what i was expecting...  thanks a million...!!!

now, to check the other issues...

peace --

--khs


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#13 2013-04-05 19:33:17

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

hello, again --

damn...   sad

anonymous@anonymous:~$ sudo apt-get install nload
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nload
anonymous@anonymous:~$ sudo apt-get install cmatrix
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package cmatrix
anonymous@anonymous:~$ sudo apt-get install qbittorrent
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package qbittorrent
anonymous@anonymous:~$ sudo apt-get install rkhunter
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package rkhunter
anonymous@anonymous:~$ sudo apt-get install bleachbit
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package bleachbit
anonymous@anonymous:~$ 

still trying to get at the root of this problem...  any further ideas...?

thanks --

-- khs


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#14 2013-04-05 19:41:12

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

I think xaos52 has mistakenly posted the sources.list for Statler, not Waldorf. smile

Offline

#15 2013-04-05 19:46:09

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

uh-oh...

is that a problem for me...?


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#16 2013-04-05 19:50:36

erghiez
Member
Registered: 2009-01-08
Posts: 25

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

Err http://http.debian.net wheezy/main Translation-en                                                                         
  404  Not Found

Offline

#17 2013-04-05 20:00:35

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

hello --

okay...  i didn't realize that #! 11, which i think is Waldorf, is not the "stable" version, nor that i was posting in the wrong area...  sorry, really...

i just got Chrome installed from the main menu, am about to try to get LibreOffice from the main menu...  so, thank you, xaos52 -- your solution fixed that, too...

now, erghiez -- what do i want to change, and where...?

and, how can i transmogrify xaos52's solution to be relevant to Waldorf, if anyone could point me at that...

and, apparently, simply adding "anonymous" to the sudo group didn't fix the problem after all, because when i tried to run cb-welcome i got that message about having to be a member of the sudo group again...

i'm really glad i didn't have these difficulties when i installed Waldorf on the first two machines -- i never would've stuck it out...  but since i know there's a piece of cheese at the end of this maze *somewhere*, i'll give it a while before i just cave in and install Wary Puppy on this old piece of junk...

peace --

-- khs


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#18 2013-04-05 20:15:19

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

sudo apt-get update && sudo apt-get dist-upgrade

> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#19 2013-04-05 20:16:33

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

Everything in Statler is a downgrade (not an upgrade) from Waldorf, so changing your sources from wheezy to squeeze and then updating (or dist-upgrading) won't accomplish much. smile

Offline

#20 2013-04-05 20:29:00

erghiez
Member
Registered: 2009-01-08
Posts: 25

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

## DEBIAN
    ## CRUNCHBANG
    ## Compatible with Debian Wheezy, but use at your own risk.
    deb http://packages.crunchbang.org/waldorf waldorf main
    #deb-src http://packages.crunchbang.org/waldorf waldorf main
     
    ## DEBIAN
    deb http://http.debian.net/debian wheezy main contrib non-free
    #deb-src http://http.debian.org/debian wheezy main contrib non-free
     
    ## DEBIAN SECURITY
    deb http://security.debian.org/ wheezy/updates main
    #deb-src http://security.debian.org/ wheezy/updates main

Last edited by erghiez (2013-04-05 20:35:08)

Offline

#21 2013-04-05 21:18:57

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

heya --

thanks for all of your help, but my frustration level peaked off on this one and i simply burned a Statler disc and am most of the way through the cb-welcome script, now...

problem solved, everything seems to be working perfectly...

in the future, i'll know to keep my Waldorf questions out of this forum...  sorry about that...

peace --


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#22 2013-04-05 21:22:11

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#23 2013-04-05 22:12:50

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

hey there --

just an update, Statler is "just working" on that Dell, no problems at all...  thanks to everyone who chipped in, deeply appreciated, all the way around...

peace --

-- khs


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#24 2013-04-05 23:35:53

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu


- apt-mark hold account

Offline

Help fund CrunchBang, donate to the project!

#25 2013-04-06 05:00:44

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: [SOLVED] cannot apt-get nor run cb-welcome, nor add programs from menu

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.
Server: bleh

Debian Logo