<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Bash: /bin/ls: No such file or directory]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=18861&amp;type=atom" />
	<updated>2011-12-15T21:30:56Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=18861</id>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235240#p235240" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>julpierto пишет:</cite><blockquote><p>Тоже ничего</p></blockquote></div><p>даже и не знаю что сказать - основные утилиты не работают. Проще переставить будет ИМХО. Или ждите кого-нибудь более знающего...</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-12-15T21:30:56Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235240#p235240</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235231#p235231" />
			<content type="html"><![CDATA[<p><strong>drBatty</strong>, попробовал удалить coreutils <br /># apt-get remove coreutils<br /></p><div class="codebox"><pre><code>Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apache2 : Depends: apache2-mpm-worker (= 2.2.16-6+squeeze4) but it is not going to be installed or
                    apache2-mpm-prefork (= 2.2.16-6+squeeze4) but it is not going to be installed or
                    apache2-mpm-event (= 2.2.16-6+squeeze4) but it is not going to be installed or
                    apache2-mpm-itk (= 2.2.16-6+squeeze4) but it is not going to be installed
           Depends: apache2.2-common (= 2.2.16-6+squeeze4) but it is not going to be installed
 debconf : PreDepends: perl-base (&gt;= 5.6.1-4) but it is not going to be installed
 php5 : Depends: libapache2-mod-php5 (&gt;= 5.3.3-7+squeeze3) but it is not going to be installed or
                 libapache2-mod-php5filter (&gt;= 5.3.3-7+squeeze3) but it is not going to be installed or
                 php5-cgi (&gt;= 5.3.3-7+squeeze3) but it is not going to be installed
 php5-sqlite : Depends: phpapi-20090626
 php5-xsl : Depends: phpapi-20090626
E: Broken packages</code></pre></div><p>Не удаляет<br /># aptitude reinstall coreutils<br /></p><div class="codebox"><pre><code>The following packages will be REINSTALLED:
  coreutils 
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 5,102 kB of archives. After unpacking 0 B will be used.
Get:1 http://mirror.hetzner.de/debian/packages/ squeeze/main coreutils amd64 8.5-1 [5,102 kB]
Fetched 5,102 kB in 0s (31.9 MB/s)
(Reading database ... 88532 files and directories currently installed.)
Preparing to replace coreutils 8.5-1 (using .../coreutils_8.5-1_amd64.deb) ...
Unpacking replacement coreutils ...
dpkg: error processing /var/cache/apt/archives/coreutils_8.5-1_amd64.deb (--unpack):
 unable to create `/bin/mktemp.dpkg-new&#039; (while processing `./bin/mktemp&#039;): Permission denied
configured to not write apport reports
                                      dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/coreutils_8.5-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:</code></pre></div><p>Тоже ничего</p>]]></content>
			<author>
				<name><![CDATA[julpierto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20970</uri>
			</author>
			<updated>2011-12-15T19:47:37Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235231#p235231</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235226#p235226" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>julpierto пишет:</cite><blockquote><p>Automatically installed: no</p></blockquote></div><p>это к делу не относится. Подробнее см. здесь: <a href="http://www.opennet.ru/tips/info/2543.shtml">http://www.opennet.ru/tips/info/2543.shtml</a><br /></p><div class="quotebox"><cite>julpierto пишет:</cite><blockquote><p>Листинг показывает Architecture: amd64</p></blockquote></div><p>значит <strong>ls</strong> установленная с пакетом НЕ соответствует той, что на самом деле.<br />попробуйте действительно удалить, и поставить по новой. У вас этот пакет (данный набор утилит) повреждён (откуда-то слева были установленные неправильные программы). Сдаётся мне, что хуже всё равно не будет&nbsp; <img src="https://linuxforum.ru/img/smilies/ac.gif" alt="ac" /> <br />Возможно, переустановить всё будет быстрее.</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-12-15T19:36:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235226#p235226</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235204#p235204" />
			<content type="html"><![CDATA[<p>aptitude show -v coreutils<br /></p><div class="codebox"><pre><code>Package: coreutils                       
Essential: yes
State: installed
Automatically installed: no
Version: 8.5-1
Priority: required
Section: utils
Maintainer: Michael Stone &lt;mstone@debian.org&gt;
Uncompressed Size: 14.2 M
Architecture: amd64
Compressed Size: 5,102 k
Filename: pool/main/c/coreutils/coreutils_8.5-1_amd64.deb
MD5sum: 77aff0d952e7e7a29405932f8f805f15
Archive: stable, stable, now
PreDepends: libacl1 (&gt;= 2.2.11-1), libattr1 (&gt;= 2.4.41-1), libc6 (&gt;= 2.6), libselinux1 (&gt;= 1.32)
Conflicts: timeout
Replaces: mktemp, timeout
Description: GNU core utilities
 This package contains the basic file, shell and text manipulation utilities which are expected to exist on every operating system. 
 
 Specifically, this package includes: arch base64 basename cat chcon chgrp chmod chown chroot cksum comm cp csplit cut date dd df dir dircolors dirname du
 echo env expand expr factor false flock fmt fold groups head hostid id install join link ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup
 nproc od paste pathchk pinky pr printenv printf ptx pwd readlink rm rmdir runcon sha*sum seq shred sleep sort split stat stty sum sync tac tail tee test
 timeout touch tr true truncate tsort tty uname unexpand uniq unlink users vdir wc who whoami yes
Homepage: http://gnu.org/software/coreutils</code></pre></div><p>Листинг показывает <strong>Architecture: amd64</strong> как должно быть, а вот насчет этого <strong>Automatically installed: no</strong> что скажете?</p>]]></content>
			<author>
				<name><![CDATA[julpierto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20970</uri>
			</author>
			<updated>2011-12-15T18:03:13Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235204#p235204</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235055#p235055" />
			<content type="html"><![CDATA[<p><strong>drBatty</strong>, спасибо. Вечером попробую, отпишусь.</p>]]></content>
			<author>
				<name><![CDATA[julpierto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20970</uri>
			</author>
			<updated>2011-12-15T07:55:40Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235055#p235055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235052#p235052" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>julpierto пишет:</cite><blockquote><p>Возможно ошибка появилась после того, как я добавлял пользователей директивой useradd user1 -d /sites/user1 -g user1 -s /bin/false то есть без оболочки (/bin/bash), но по-моему я не добавлял root`a, почему же тогда от него не выполняется ls?</p></blockquote></div><p>от этого содержимое /bin никак не могло измениться.<br /></p><div class="quotebox"><cite>julpierto пишет:</cite><blockquote><p>Можно конечно пойти на крайние меры и переставить OC, но хотелось бы найти решение &quot;малой кровью&quot;.</p></blockquote></div><p>попробуйте удалить coreutils и поставить по новой. Но в данной ситуации я не могу дать никаких гарантий - с системой случилось нечто странное.</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-12-15T07:48:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235052#p235052</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235050#p235050" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>julpierto пишет:</cite><blockquote><p>система 64-битная (Debian Squeeze 6.0.3)</p></blockquote></div><p>о как. Оно. Пакет coreutils у вас почему-то 32х битный. Почему? Покажите<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"># aptitude show -v coreutils</div><br />(ls как раз и входит в этот пакет. Как и ещё множество нужных утилит)</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-12-15T07:45:50Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235050#p235050</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235048#p235048" />
			<content type="html"><![CDATA[<p>Это сервер хостера, немецкий - там все качественно должно быть. <br />Возможно ошибка появилась после того, как я добавлял пользователей директивой useradd user1 -d /sites/user1 -g user1 -s /bin/false то есть без оболочки (/bin/bash), но по-моему я не добавлял root`a, почему же тогда от него не выполняется ls? <br />Можно конечно пойти на крайние меры и переставить OC, но хотелось бы найти решение &quot;малой кровью&quot;.</p>]]></content>
			<author>
				<name><![CDATA[julpierto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20970</uri>
			</author>
			<updated>2011-12-15T07:43:40Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235048#p235048</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235035#p235035" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>julpierto пишет:</cite><blockquote><p>bormant, система 64-битная (Debian Squeeze 6.0.3) <br />Сейчас (на работе) не могу выдать листинг uname -a, вечером напишу.</p></blockquote></div><p>Это ваш личный сервер? или vps/vds? может что хостер намутил. Так как вернуть на место все, будет проблематично.</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2011-12-15T06:40:50Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235035#p235035</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235034#p235034" />
			<content type="html"><![CDATA[<p><strong>bormant</strong>, система 64-битная (Debian Squeeze 6.0.3) <br />Сейчас (на работе) не могу выдать листинг uname -a, вечером напишу.</p>]]></content>
			<author>
				<name><![CDATA[julpierto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20970</uri>
			</author>
			<updated>2011-12-15T06:29:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235034#p235034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235002#p235002" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>julpierto пишет:</cite><blockquote><p>Class:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELF32</p></blockquote></div><p>Если система 64-битная, то это оно и есть, <br />uname -a<br />что говорит?</p>]]></content>
			<author>
				<name><![CDATA[bormant]]></name>
				<uri>https://linuxforum.ru/profile.php?id=732</uri>
			</author>
			<updated>2011-12-15T04:42:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235002#p235002</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=234969#p234969" />
			<content type="html"><![CDATA[<p>ldd /bin/ls<br /></p><div class="codebox"><pre><code>not a dynamic executable</code></pre></div><p>readelf -h /bin/ls<br /></p><div class="codebox"><pre><code>ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF32
  Data:                              2&#039;s complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           Intel 80386
  Version:                           0x1
  Entry point address:               0x8049158
  Start of program headers:          52 (bytes into file)
  Start of section headers:          35692 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         6
  Size of section headers:           40 (bytes)
  Number of section headers:         25
  Section header string table index: 24</code></pre></div>]]></content>
			<author>
				<name><![CDATA[julpierto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20970</uri>
			</author>
			<updated>2011-12-14T20:37:55Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=234969#p234969</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=234964#p234964" />
			<content type="html"><![CDATA[<p>ldd /bin/ls<br />readelf -h /bin/ls<br />ничего интересного не скажут?</p>]]></content>
			<author>
				<name><![CDATA[bormant]]></name>
				<uri>https://linuxforum.ru/profile.php?id=732</uri>
			</author>
			<updated>2011-12-14T20:13:46Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=234964#p234964</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=234927#p234927" />
			<content type="html"><![CDATA[<p>strace /bin/ls<br /></p><div class="codebox"><pre><code>execve(&quot;/bin/ls&quot;, [&quot;/bin/ls&quot;], [/* 18 vars */]) = -1 ENOENT (No such file or directory)
dup(2)                                  = 3
fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f100240e000
lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(3, &quot;strace: exec: No such file or di&quot;..., 40strace: exec: No such file or directory
) = 40
close(3)                                = 0
munmap(0x7f100240e000, 4096)            = 0
exit_group(1)                           = ?</code></pre></div><p>Cначала все работало, потом поставил:<br /></p><div class="codebox"><pre><code>apt-get install ffmpeg
apt-get install imagemagick
deb ftp://ftp.debian-multimedia.org/ squeeze main
aptitude update
aptitude install debian-multimedia-keyring</code></pre></div><p> <br />и видимо после этого слетела ls&nbsp; <img src="https://linuxforum.ru/img/smilies/ac.gif" alt="ac" /></p>]]></content>
			<author>
				<name><![CDATA[julpierto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20970</uri>
			</author>
			<updated>2011-12-14T18:23:30Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=234927#p234927</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bash: /bin/ls: No such file or directory]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=234902#p234902" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>julpierto пишет:</cite><blockquote><p>bash: /bin/ls: No such file or directory</p></blockquote></div><p>... или битность не соответствует (32/64), что равносильно &quot;не хватает библиотек&quot;.</p>]]></content>
			<author>
				<name><![CDATA[bormant]]></name>
				<uri>https://linuxforum.ru/profile.php?id=732</uri>
			</author>
			<updated>2011-12-14T17:59:54Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=234902#p234902</id>
		</entry>
</feed>
