LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-15-2012, 04:44 PM   #16
siemaeniu500
Member
 
Registered: Sep 2012
Posts: 44

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by pan64 View Post
sorry, it does not help, what will reply the following commands:
type ls
which ls
echo $PATH
I can't understand what you have to tell me :P
You are polish ?

@topic

root@sieemaen:~# ls /usr/bin/
ControlPanel mkfontdir
X11 mkfontscale
[ namei
a2p nano
addpart nawk
apropos ncal
apt-cache ncurses5-config
apt-cdrom ncursesw5-config
apt-config neqn
apt-extracttemplates newgrp
apt-ftparchive nice
apt-get nl
apt-key nohup
apt-mark nproc
apt-sortpkgs nroff
aptitude nstat
aptitude-create-state-bundle od
aptitude-curses odbcinst
aptitude-run-state-bundle oldfind
arch omshell
awk orbd
base64 pack200
basename pager
bashbug partx
bdftopcf passwd
bdftruncate paste
bsd-from pathchk
bsd-write pcretest
c2ph perl
cal perl5.10.1
calendar perlbug
captoinfo perldoc
catchsegv perlivp
catman perlthanks
chage pg
chattr pgrep
chcon pic
chfn pico
chkdupexe piconv
chrt pinky
chsh pkill
cksum pl2pm
clear pmap
clear_console pod2html
cmp pod2latex
col pod2man
colcrt pod2text
colrm pod2usage
column podchecker
comm podselect
config_data policytool
corelist pr
cpan preconv
cpan2dist prename
cpanp printenv
cpanp-run-perl printerbanner
crontab printf
csplit prove
ctstat psed
cut pstruct
dbus-cleanup-sockets ptar
dbus-daemon ptardiff
dbus-monitor ptx
dbus-send pwdx
dbus-uuidgen quota
ddate rcp
debconf rename
debconf-apt-progress rename.ul
debconf-communicate renice
debconf-copydb reset
debconf-escape rev
debconf-set-selections rgrep
debconf-show rlogin
defoma rmid
defoma-app rmiregistry
defoma-font routef
defoma-hints routel
defoma-id rpcinfo
defoma-subst rsh
defoma-user rtstat
delpart runcon
dh_installdefoma rview
dh_installxmlcatalogs s2p
diff savelog
diff3 scp
dircolors screen
dirname script
dpkg scriptreplay
dpkg-deb sdiff
dpkg-divert select-default-iwrap
dpkg-maintscript-helper sensible-browser
dpkg-query sensible-editor
dpkg-split sensible-pager
dpkg-statoverride seq
dpkg-trigger servertool
dprofpp setarch
du setsid
editor setterm
enc2xs sftp
env sg
eqn sha1sum
ex sha224sum
expand sha256sum
expiry sha384sum
expr sha512sum
factor shasum
faillog shred
fallocate shuf
fc-cache skill
fc-cat slabtop
fc-list slogin
fc-match snice
fc-query soelim
fc-scan sort
file splain
find split
find2perl ssh
firefox ssh-add
flock ssh-agent
fmt ssh-argv0
fold ssh-copy-id
fonttosfnt ssh-keygen
free ssh-keyscan
from ssh-vulnkey
gdk-pixbuf-query-loaders stat
geqn stdbuf
getconf sum
getent tabs
getopt tac
ginstall-info tail
gnome-www-browser tasksel
gpasswd taskset
gpg tbl
gpg-zip tee
gpgsplit test
gpgv tic
gpic timeout
groff tload
grog tnameserv
grops toe
grotty top
groups touch
gtbl tput
gtk-query-immodules-2.0 tr
gtk-update-icon-cache traceproto
h2ph traceproto.db
h2xs traceroute
hd traceroute-nanog
head traceroute.db
helpztags traceroute6
hexdump traceroute6.db
host troff
hostid truncate
i386 tset
iceweasel tsort
iconv tty
id tzselect
info ucf
infobrowser ucfq
infocmp ucfr
infokey ucs2any
infotocap ul
install unexpand
install-info uniq
instmodsh unlink
ionice unpack200
ipcmk unshare
ipcrm unxz
ipcs update-alternatives
iptables-xml update-mime-database
ispell-wrapper update-mime-database.real
isql uptime
iusql users
jcontrol vi
jexec view
join vim.tiny
keytool vmstat
last w
lastb w.procps
lastlog wall
lcf watch
ldd wc
lexgrog wget
lft whatis
lft.db whereis
libnetcfg which
line whiptail
link who
linux32 whoami
linux64 write
lnstat x-www-browser
locale x86_64
localedef xargs
logger xauth
logname xsubpp
look xulrunner-1.9.1
lorder xulrunner-stub
lsattr xxd
lscpu xz
lspgpot xzcat
lzmainfo xzcmp
man xzdiff
mandb xzegrep
manpath xzfgrep
mawk xzgrep
mcookie xzless
md5sum xzmore
md5sum.textutils yes
mesg zdump
mkfifo zsoelim
 
Old 09-15-2012, 04:57 PM   #17
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
This is what it should look like:

$ which ar
/usr/bin/ar

$ which dpkg
/usr/bin/dpkg

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

and as root
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Code:
$ ls /usr/bin|grep dpkg
dpkg
dpkg-architecture
dpkg-buildflags
dpkg-buildpackage
dpkg-checkbuilddeps
dpkg-checkdeps
dpkg-deb
dpkg-depcheck
dpkg-distaddfile
dpkg-divert
dpkg-genbuilddeps
dpkg-genchanges
dpkg-gencontrol
dpkg-gensymbols
dpkg-maintscript-helper
dpkg-mergechangelogs
dpkg-name
dpkg-parsechangelog
dpkg-query
dpkg-ruby
dpkg-scanpackages
dpkg-scansources
dpkg-shlibdeps
dpkg-source
dpkg-split
dpkg-statoverride
dpkg-trigger
dpkg-vendor
$ ls /usr/bin|grep ar
ar

if you do not have ar or dpkg something has nuked your system. You may be able to manually copy the files to the correct places. But the problem is you do not know what else may be missing. Your only real option at this point is to reinstall.

After reinstalling do not mix Debian and Ubuntu or any other distro, only install packages made for Debian.

Synaptic shows I have over 39,000+ packages and that is only with Debian sid, Debian experimental, deb-multimedia.org, and the Google Chrome repos.

$ inxi -r
Repos: Active apt sources in file: /etc/apt/sources.list
deb http://mirrors.kernel.org/debian/ unstable main contrib non-free
deb-src http://mirrors.kernel.org/debian/ unstable main contrib non-free
deb http://mirrors.kernel.org/debian/ experimental main contrib non-free
deb http://www.deb-multimedia.org/ sid main non-free
deb http://dl.google.com/linux/chrome/deb/ stable main
deb http://dl.google.com/linux/chrome_testing/deb/ stable main

even though I maintain a huge list of repos in my Giant sources.list there is very little reason for going outside the normal Debian repos.
 
Old 09-16-2012, 02:08 AM   #18
siemaeniu500
Member
 
Registered: Sep 2012
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by craigevil View Post
This is what it should look like:

$ which ar
/usr/bin/ar

$ which dpkg
/usr/bin/dpkg

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

and as root
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Code:
$ ls /usr/bin|grep dpkg
dpkg
dpkg-architecture
dpkg-buildflags
dpkg-buildpackage
dpkg-checkbuilddeps
dpkg-checkdeps
dpkg-deb
dpkg-depcheck
dpkg-distaddfile
dpkg-divert
dpkg-genbuilddeps
dpkg-genchanges
dpkg-gencontrol
dpkg-gensymbols
dpkg-maintscript-helper
dpkg-mergechangelogs
dpkg-name
dpkg-parsechangelog
dpkg-query
dpkg-ruby
dpkg-scanpackages
dpkg-scansources
dpkg-shlibdeps
dpkg-source
dpkg-split
dpkg-statoverride
dpkg-trigger
dpkg-vendor
$ ls /usr/bin|grep ar
ar

if you do not have ar or dpkg something has nuked your system. You may be able to manually copy the files to the correct places. But the problem is you do not know what else may be missing. Your only real option at this point is to reinstall.

After reinstalling do not mix Debian and Ubuntu or any other distro, only install packages made for Debian.

Synaptic shows I have over 39,000+ packages and that is only with Debian sid, Debian experimental, deb-multimedia.org, and the Google Chrome repos.

$ inxi -r
Repos: Active apt sources in file: /etc/apt/sources.list
deb http://mirrors.kernel.org/debian/ unstable main contrib non-free
deb-src http://mirrors.kernel.org/debian/ unstable main contrib non-free
deb http://mirrors.kernel.org/debian/ experimental main contrib non-free
deb http://www.deb-multimedia.org/ sid main non-free
deb http://dl.google.com/linux/chrome/deb/ stable main
deb http://dl.google.com/linux/chrome_testing/deb/ stable main

even though I maintain a huge list of repos in my Giant sources.list there is very little reason for going outside the normal Debian repos.

I can't reinstall system, because i have there very important files like minecraft server wit big weight.
My dpkg.status from /var/backups

http://paste.ubuntu.com/1208358/
 
Old 09-16-2012, 05:11 AM   #19
siemaeniu500
Member
 
Registered: Sep 2012
Posts: 44

Original Poster
Rep: Reputation: Disabled
Please help guys
 
Old 09-16-2012, 05:38 AM   #20
siemaeniu500
Member
 
Registered: Sep 2012
Posts: 44

Original Poster
Rep: Reputation: Disabled
Recent of my dpkg:

#!/bin/bash
if [ -e "/tmp/ThemeItLock" ]
then
rm -f /tmp/ThemeItLock
exec dpkgs $@ 1>/dev/null 2>/dev/null
else
exec dpkgs $@
fi


Error:

/usr/bin/dpkg: line 7: exec: dpkgs: not found
 
Old 09-16-2012, 08:38 AM   #21
siemaeniu500
Member
 
Registered: Sep 2012
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by siemaeniu500 View Post
Recent of my dpkg:

#!/bin/bash
if [ -e "/tmp/ThemeItLock" ]
then
rm -f /tmp/ThemeItLock
exec dpkgs $@ 1>/dev/null 2>/dev/null
else
exec dpkgs $@
fi


Error:

/usr/bin/dpkg: line 7: exec: dpkgs: not found
Please help !
 
Old 09-16-2012, 09:24 AM   #22
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Let us have a look at the situation:
1. You have mixed packages of Ubuntu 12.04 in your Debian install.
2. You don't have a backup of your important files.
3. You have borked your system.

So really, the only way back to a working system would be to re-install, since you don't have a backup of your system.
Advices for the next time:
1. Debian and Ubuntu are not compatible. As you have seen mixing them can break your system.
2. If you don't have a proper backup your files can't be important.
3. Never mess with a production system, always test your changes first on a separate system.

Last edited by TobiSGD; 09-16-2012 at 03:32 PM. Reason: fixed typo
 
Old 09-16-2012, 12:02 PM   #23
siemaeniu500
Member
 
Registered: Sep 2012
Posts: 44

Original Poster
Rep: Reputation: Disabled
Can i reinstall system and not lost files ?

I using hypervm on hosting.

I know it stupid question.
 
Old 09-16-2012, 03:01 PM   #24
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,184

Rep: Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180
Quote:
Originally Posted by siemaeniu500 View Post
root@sieemaen:~# ar x dpkg_1.15.8.12_amd64.deb
-bash: ar: command not found
Do you happen to have bsdtar installed? It will on ar archives as well.

If not, just use another machine with ar to open the initial ar outer container of the deb package, then copy back the data.tar.gz to your broken machine. You can then open this with tar to get the working dpkg executable out of it.

Last edited by ruario; 09-16-2012 at 03:06 PM.
 
Old 09-16-2012, 03:05 PM   #25
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,184

Rep: Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180Reputation: 1180
Quote:
Originally Posted by siemaeniu500 View Post
Can i reinstall system and not lost files ?

I using hypervm on hosting.

I know it stupid question.
Exactly what files do you need? For example, Minecraft (which you mentioned) stores its files in ~/.minecraft of your user IIRC (might be different for a minecraft server). You could tar this up ("tar cvaf minecraft_backup.tar.bz2 ~/.minecraft") and copy it over to another machine. So exactly what you need to save?

Last edited by ruario; 09-16-2012 at 03:08 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dpkg: parse error, in file `/var/lib/dpkg/updates/0004 contact.aprie Linux - General 2 04-17-2012 09:01 PM
By mistake it deleted the /usr/bin/dpkg.exe please help!!! amritpalpathak Linux - Software 21 01-16-2011 04:14 AM
Ubuntu newbie, E: dpkg was interrupted, you must manually run 'dpkg --configure -a' ? chinkychan Linux - Newbie 1 01-28-2009 10:21 PM
Sound input wierdness (solved - silly mistake - mods pls delete) NDR008 Linux - Software 2 11-21-2006 03:35 AM
Delete by mistake accident of blue icon up2date. chico58 LQ Suggestions & Feedback 2 11-15-2003 05:46 AM


All times are GMT -5. The time now is 10:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration