sudo apt-get update在我的服务器(有互联网连接)上运行失败。服务器是否暂时损坏,或者我的 APT 配置错误并使用旧服务器?简而言之,我该如何解决这个问题?
这是输出:
~$ uname -a
Linux nematode 2.6.28-19-server #66-Ubuntu SMP Sat Oct 16 18:41:24 UTC 2010 i686 GNU/Linux
~$ sudo apt-get update
Err http://us.archive.ubuntu.com jaunty Release.gpg
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/main Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/restricted Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/universe Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates Release.gpg
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com jaunty-updates/main Translation-en_US
Could …Run Code Online (Sandbox Code Playgroud) 我有一台通过 USB 连接到主机的平板电脑。(理想情况下,主机运行的是 Windows,但如果绝对必要,我也可以将主机切换为 Ubuntu。)
我希望能够在没有 RS-232、WiFi 或其他网络连接的情况下通过 SSH 连接到设备。我需要什么软件组合和设置来实现这一点?
基本上,我希望能够拥有相当于adb shell, 但当平板电脑运行纯 Ubuntu 而不是 Android 时。
平板电脑恰好运行 9.04,但如果需要,我很乐意升级它。
我正在尝试将一个大文件目录从我的服务器同步到一个本地框。(两者都在运行 Ubuntu。)我有一个看起来有效的命令,但某些文件没有被复制:
phrogz@planar:~$ cat ./sync-phrogz-public
rsync -rztpl --stats --rsh=/usr/bin/ssh 69.46.18.236:/var/www/phrogz.net/public /var/www/phrogz.net/public
phrogz@planar:~$ ./sync-phrogz-public
Number of files: 10320
Number of files transferred: 0
Total file size: 4221864770 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 197778
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 388
Total bytes received: 199213
sent 388 bytes received 199213 bytes 79840.40 bytes/sec
total size is 4221864770 speedup …Run Code Online (Sandbox Code Playgroud) 可能的重复:
在 /boot 上释放更多空间
我今天登录到我的服务器以找到消息:
=> /boot is using 98.9% of 91MB
Run Code Online (Sandbox Code Playgroud)
当我查看时,/boot我发现它的空间确实非常低,并且其中包含旧内核文件:
phrogz@planar:~$ df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 92M 54M 33M 63% /boot
phrogz@planar:~$ la /boot
total 81880
drwxr-xr-x 4 root root 3072 2011-12-02 06:26 ./
drwxr-xr-x 22 root root 4096 2011-09-29 06:37 ../
-rw-r--r-- 1 root root 646419 2011-03-01 19:02 abi-2.6.32-30-server
-rw-r--r-- 1 root root 646419 2011-04-08 17:07 abi-2.6.32-31-server
-rw-r--r-- 1 root root 646454 2011-04-20 16:53 abi-2.6.32-32-server
-rw-r--r-- 1 root …Run Code Online (Sandbox Code Playgroud) 作为另一个问题的解决方案,我被迫使用dpkg --remove卸载包。但是,在我执行此操作后,该软件包仍列在dpkg -l:
phrogz@planar:/boot$ dpkg -l | grep linux-image-2
ii linux-image-2.6.32-30-server 2.6.32-30.59 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-31-server 2.6.32-31.61 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-32-server 2.6.32-32.62 Linux kernel image for version 2.6.32 on x86
phrogz@planar:/boot$ sudo dpkg --remove linux-image-2.6.32-30-server
(Reading database ... 141902 files and directories currently installed.)
Removing linux-image-2.6.32-30-server ...
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
[...]
done
phrogz@planar:/boot$ dpkg -l | grep …Run Code Online (Sandbox Code Playgroud)