AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-495443

Mark Jeronimus's questions

Martin Hope
Mark Jeronimus
Asked: 2019-12-17 00:36:02 +0800 CST

如何防止在前面保存 *with* 空格的 bash 命令

  • 8

我读到,为了不将 bash 命令保存到.bash_history,您在前面放了一个空格。这适用于我所有的嵌入式 Linux PC,但不适用于我的 Ubuntu 18.04 LTS 桌面。我只是认为这是一个 Ubuntu 的“怪癖”之类的。现在我已经安装了第二台带有 Ubuntu 18.04 LTS 的 PC,它按预期工作:前面有空格的命令没有保存!

所以第一台装有 Ubuntu 18.04 LTS 的 PC 可能有问题。如何找出导致此问题的原因并对其进行修复,以便它不会保存带有空格的 bash 命令?

摘抄:

mark@mark:~$ tail -n 5 .bash_history 
./deploy.sh 
./deploy.sh 
upd
 man ls
nano .bash_history 
mark@mark:~$ 

可能有用的东西:

mark@mark:~$ cat .bashrc 
alias upd="sudo apt update && sudo apt upgrade && sudo apt autoremove"
export PATH="$PATH:"/opt/microchip/xc8/v1.44/bin""

mark@mark:~$ printenv
CLUTTER_IM_MODULE=xim
LC_MEASUREMENT=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
XDG_MENU_PREFIX=gnome-
KIGITHUB=https://github.com/KiCad
LANG=en_US.UTF-8
MANAGERPID=1252
DISPLAY=:0
INVOCATION_ID=26457eadc1b8429692b7f3bd70c6464f
UNITY_DEFAULT_PROFILE=unity
COMPIZ_CONFIG_PROFILE=ubuntu
GTK2_MODULES=overlay-scrollbar:overlay-scrollbar
GTK_CSD=0
COLORTERM=truecolor
ZEITGEIST_DATA_PATH=/home/mark/.local/share/zeitgeist
USERNAME=mark
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
MANDATORY_PATH=/usr/share/gconf/unity.mandatory.path
LC_NAME=en_US.UTF-8
USER=mark
DESKTOP_SESSION=unity
QT4_IM_MODULE=xim
TEXTDOMAINDIR=/usr/share/locale/
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/24f3cfef_6815_4cfb_8cdc_6c63814db4b6
DEFAULTS_PATH=/usr/share/gconf/unity.default.path
PWD=/home/mark
HOME=/home/mark
JOURNAL_STREAM=9:1719321
TEXTDOMAIN=im-config
QT_ACCESSIBILITY=1
XDG_SESSION_TYPE=x11
COMPIZ_BIN_PATH=/usr/bin/
XDG_DATA_DIRS=/usr/share/unity:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_SESSION_DESKTOP=unity
LC_ADDRESS=en_US.UTF-8
SSH_AGENT_LAUNCHER=gnome-keyring
LC_NUMERIC=en_US.UTF-8
GTK_MODULES=gail:atk-bridge:unity-gtk-module
PAPERSIZE=letter
WINDOWPATH=3
GNOME_SESSION_XDG_SESSION_PATH=
TERM=xterm-256color
VTE_VERSION=5202
SHELL=/bin/bash
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus
IM_CONFIG_PHASE=2
XDG_CURRENT_DESKTOP=Unity:Unity7:ubuntu
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GNOME_TERMINAL_SERVICE=:1.617
UNITY_HAS_3D_SUPPORT=true
SHLVL=3
LC_TELEPHONE=en_US.UTF-8
GDMSESSION=unity
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LOGNAME=mark
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-unity:/etc/xdg
PATH=/home/mark/bin:/home/mark/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/opt/microchip/xc8/v1.44/bin:/opt/microchip/xc8/v1.44/bin:/opt/microchip/xc8/v1.44/bin
LC_IDENTIFICATION=en_US.UTF-8
LD_PRELOAD=libgtk3-nocsd.so.0:libgtk3-nocsd.so.0
SESSION_MANAGER=local/mark:@/tmp/.ICE-unix/19058,unix/mark:/tmp/.ICE-unix/19058
GTK_IM_MODULE=ibus
LC_TIME=en_US.UTF-8
bash 18.04 bash-history
  • 2 个回答
  • 1153 Views
Martin Hope
Mark Jeronimus
Asked: 2019-12-06 07:39:36 +0800 CST

如何回滚大量 apt install 命令

  • 2

我知道如何回滚 apt install <package> 并自动删除它的所有依赖项,但这不是我的问题。

我的问题是某些脚本执行了一个庞大的 命令apt install(在/var/log/apt/history.loginstallpurge

如何仅卸载执行此命令之前没有的软件包?

这是日志中的整行(472 个包):

Commandline: apt-get install ant ant-optional apache2 apache2-bin apache2-data apache2-utils at autoconf automake autopoint autotools-dev binutils-aarch64-linux-gnu binutils-arm-linux-gnueabihf binutils-mingw-w64-i686 binutils-mips64el-linux-gnuabi64 binutils-mipsel-linux-gnu bzip2-doc cdbs cmake cmake-data comerr-dev cpp-5-arm-linux-gnueabihf cpp-7-arm-linux-gnueabihf cpp-arm-linux-gnueabihf curl dctrl-tools debhelper debugedit devscripts dh-autoreconf dh-strip-nondeterminism dh-translations dput elfutils fonts-lato g++-5-arm-linux-gnueabihf g++-5-multilib-arm-linux-gnueabihf g++-7-arm-linux-gnueabihf g++-7-multilib g++-arm-linux-gnueabihf g++-mingw-w64-i686 gcc-5-arm-linux-gnueabihf gcc-5-arm-linux-gnueabihf-base gcc-5-cross-base gcc-5-multilib-arm-linux-gnueabihf gcc-7-arm-linux-gnueabihf gcc-7-arm-linux-gnueabihf-base gcc-7-cross-base gcc-7-multilib gcc-8-cross-base gcc-arm-linux-gnueabihf gcc-mingw-w64-base gcc-mingw-w64-i686 gdal-data giblib1 gir1.2-appindicator3-0.1 gir1.2-gnomekeyring-1.0 gir1.2-harfbuzz-0.0 gnome-icon-theme gperf ibverbs-providers icu-devtools intltool jq krb5-multidev lib32asan4 lib32atomic1 lib32cilkrts5 lib32gcc-7-dev lib32gcc1 lib32gomp1 lib32itm1 lib32mpx2 lib32ncurses5 lib32ncurses5-dev lib32quadmath0 lib32stdc++-7-dev lib32stdc++6 lib32tinfo-dev lib32tinfo5 lib32ubsan0 lib32z1 lib32z1-dev libaec0 libapache2-mod-php7.2 libappindicator3-dev libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libarchive-cpio-perl libarmadillo8 libarpack2 libasan2-armhf-cross libasan4-armhf-cross libasm1 libasound2-dev libatk-bridge2.0-dev libatk1.0-dev libatomic1-armhf-cross libatspi2.0-dev libb-hooks-endofscope-perl libb-hooks-op-check-perl libbluetooth-dev libbrlapi-dev libbz2-dev libc6-armel-armhf-cross libc6-armel-cross libc6-armhf-cross libc6-dev:i386 libc6-dev-armel-armhf-cross libc6-dev-armel-cross libc6-dev-armhf-cross libc6-dev-i386 libc6-dev-x32 libc6-i386 libc6-x32 libcairo-script-interpreter2 libcairo2-dev libcap-dev libcharls1 libcilkrts5-armhf-cross libclass-method-modifiers-perl libclass-xsaccessor-perl libcups2-dev libcupsfilters-dev libcupsimage2-dev libcurl4-gnutls-dev libdap25 libdapclient6v5 libdata-optlist-perl libdatrie1:i386 libdbus-1-dev libdbus-glib-1-dev libdbusmenu-glib-dev libdc1394-22 libdevel-callchecker-perl libdevel-globaldestruction-perl libdistro-info-perl libdrm-dev libdynaloader-functions-perl libegl1-mesa-dev libelf-dev libelf-dev:i386 libepoxy-dev libepsilon1 libfabric1 libffi-dev libfile-chdir-perl libfile-homedir-perl libfile-stripnondeterminism-perl libfile-which-perl libfm-extra4 libfontconfig1-dev libfreetype6-dev libfreexl1 libfyba0 libgbm-dev libgcc-5-dev-armhf-cross libgcc-7-dev-armhf-cross libgcc1-armhf-cross libgdal20 libgdcm2.8 libgdk-pixbuf2.0-dev libgeos-3.6.2 libgeos-c1v5 libgeotiff2 libgetopt-long-descriptive-perl libgit-wrapper-perl libgl1-mesa-dev libgles1 libglib2.0-dev libglib2.0-dev-bin libglu1-mesa-dev libglvnd-core-dev libglvnd-dev libgnome-keyring-common libgnome-keyring-dev libgnome-keyring0 libgomp1-armhf-cross libgraphite2-3:i386 libgraphite2-dev libgssrpc4 libgtk-3-dev libharfbuzz-dev libharfbuzz-gobject0 libharfbuzz0b:i386 libhdf4-0-alt libhdf5-100 libhdf5-openmpi-100 libhwloc-plugins libhwloc5 libibverbs1 libicu-dev libicu-le-hb-dev libicu-le-hb0 libiculx60 libid3tag0 libimlib2 libimport-into-perl libio-stringy-perl libisl15 libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libjq1 libjsoncpp1 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-9 libkmlbase1 libkmldom1 libkmlengine1 libkrb5-dev liblept5 liblist-compare-perl libltdl-dev liblzma-dev libmail-sendmail-perl libmenu-cache-bin libmenu-cache3 libminizip1 libmodule-implementation-perl libmodule-runtime-perl libmoo-perl libnamespace-clean-perl libnetcdf-c++4 libnetcdf13 libnl-route-3-200 libnspr4:i386 libnspr4-dev libnss3:i386 libnss3-dev libnumber-compare-perl libnumber-range-perl libobrender32v5 libobt2v5 libogdi3.2 libonig4 libopencv-calib3d3.2 libopencv-contrib3.2 libopencv-core3.2 libopencv-features2d3.2 libopencv-flann3.2 libopencv-highgui3.2 libopencv-imgcodecs3.2 libopencv-imgproc3.2 libopencv-ml3.2 libopencv-objdetect3.2 libopencv-photo3.2 libopencv-shape3.2 libopencv-stitching3.2 libopencv-superres3.2 libopencv-video3.2 libopencv-videoio3.2 libopencv-videostab3.2 libopencv-viz3.2 libopengl0 libopenmpi2 libpackage-stash-perl libpackage-stash-xs-perl libpam0g-dev libpango-1.0-0:i386 libpango1.0-0 libpango1.0-0:i386 libpango1.0-dev libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpangox-1.0-0 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libparams-classify-perl libparams-util-perl libparams-validate-perl libpath-iterator-rule-perl libpath-tiny-perl libpci-dev libpci3:i386 libpcre16-3 libpcre3-dev libpcre32-3 libpixman-1-dev libpng-dev libpng-tools libpod-constants-perl libpq5 libproj12 libpsm-infinipath1 libpulse-dev libqhull7 librdmacm1 libregexp-pattern-license-perl librhash0 librole-tiny-perl librpm8 librpmbuild8 librpmio8 librpmsign8 libruby2.5 libsctp-dev libsctp1 libserf-1-1 libsfasan2-armhf-cross libsfatomic1-armhf-cross libsfgcc-5-dev-armhf-cross libsfgcc1-armhf-cross libsfgomp1-armhf-cross libsfstdc++-5-dev-armhf-cross libsfstdc++6-armhf-cross libsfubsan0-armhf-cross libsocket++1 libsort-key-perl libsort-versions-perl libspatialite7 libspeechd-dev libsqlite3-dev libssl-dev libssl-dev:i386 libstdc++-5-dev-armhf-cross libstdc++-7-dev-armhf-cross libstdc++6-armhf-cross libstrictures-perl libstring-copyright-perl libstring-escape-perl libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl libsub-install-perl libsub-quote-perl libsuperlu5 libsvn1 libsys-hostname-long-perl libsz2 libtbb2 libtesseract4 libtext-glob-perl libtext-unidecode-perl libthai0:i386 libtiff-dev libtiff5-dev libtiffxx5 libtinfo-dev:i386 libtool libubsan0-armhf-cross libudev-dev libunicode-utf8-perl liburiparser1 libuv1 libvariable-magic-perl libvtk6.3 libwayland-bin libwayland-dev libx11-xcb-dev libx32asan4 libx32atomic1 libx32cilkrts5 libx32gcc-7-dev libx32gcc1 libx32gomp1 libx32itm1 libx32quadmath0 libx32stdc++-7-dev libx32stdc++6 libx32ubsan0 libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxext-dev libxfixes-dev libxft-dev libxft2:i386 libxi-dev libxinerama-dev libxkbcommon-dev libxml2-dev libxrandr-dev libxrender-dev libxshmfence-dev libxslt1-dev libxss-dev libxtst-dev libxtst6:i386 libxxf86vm-dev licensecheck linux-libc-dev:i386 linux-libc-dev-armel-cross linux-libc-dev-armhf-cross mesa-common-dev mingw-w64-common mingw-w64-i686-dev obconf obsession odbcinst odbcinst1debian2 openbox openbox-menu openmpi-bin openmpi-common php-common php7.2-cgi php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline pkg-config po-debconf proj-bin proj-data python-asn1crypto python-cffi-backend python-cherrypy3 python-cryptography python-enum34 python-idna python-ipaddress python-opencv python-openssl python-psutil python-repoze.lru python-routes python-simplejson python-webob python-yaml python3-gpg python3-magic python3-unidiff rake rpm rpm-common rpm2cpio ruby ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit ruby2.5 rubygems-integration scrot subversion tex-common texinfo uuid-dev wayland-protocols wdiff x11proto-composite-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-randr-dev x11proto-record-dev x11proto-scrnsaver-dev x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xcompmgr xutils-dev xvfb zlib1g-dev zlib1g-dev:i386
package-management apt 18.04
  • 2 个回答
  • 838 Views
Martin Hope
Mark Jeronimus
Asked: 2019-02-14 01:03:07 +0800 CST

修复缺少文件的软件包

  • 2

不知何故,两个包(我不再需要)在文件系统检查后损坏,现在缺少文件。

我安装并初始化debsums,当我运行它时,它会提供大量丢失的文件(并且只有丢失的文件)。

我尝试了这些命令(到处都可以找到):

  • sudo apt upgrade
  • sudo apt autoremove
  • sudo apt install brscan4
  • sudo apt remove brscan4
  • sudo dpkg --configure -a
  • sudo apt install --reinstall brscan4
  • sudo apt install -f --reinstall brscan4
  • sudo apt-get -f install(没有包名)
  • sudo dpkg --remove --force-remove-reinstreq brscan4
  • sudo apt-get purge --remove brscan4
  • [添加]dpkg -P brscan4

值得注意的是,dpkg --configure -a似乎到处都推荐它,就好像它是应该解决它的最后的最后手段解决方案一样。

他们都给出了完全相同的错误:

删除 brscan4 (0.4.4-3) ...
/var/lib/dpkg/info/brscan4.prerm: 3: /var/lib/dpkg/info/brscan4.prerm: /opt/brother/scanner/brscan4/setupSaneScan4 : 未找到
dpkg: 错误处理包 brscan4 (--remove): 已安装 brscan4 包预删除脚本子进程返回错误退出状态 127

这些命令对损坏的包没有任何作用:

  • sudo apt update
  • sudo apt update --fix-missing

我该如何解决从头开始重新安装 Ubuntu 的问题?(他的最终解决方案,见聊天)

dpkg apt 18.04 data-corruption
  • 1 个回答
  • 7067 Views
Martin Hope
Mark Jeronimus
Asked: 2019-02-13 00:20:47 +0800 CST

如何在引导期间强制修复文件系统

  • 5

我有两个磁盘,在/和/home/都显示错误e2fsck -fn /dev/<disk>。(-f = 检查是否“干净”,-n = 只读模式)

如何修复这些文件系统错误?

我设法启用了启动时扫描(不确定它是否同时扫描两者),但之后两个磁盘仍然出现错误。


细节

我按照https://linuxconfig.org/how-to-force-fsck-to-check-filesystem-after-system-reboot-on-linux上的指南进行操作,使用触摸文件的方法甚至对根盘。Ubuntu 抱怨:

2 月 11 日 17:11:02 标记 systemd-fsck[690]:请在内核命令行上传递“fsck.mode=force”,而不是在根文件系统上创建 /forcefsck。

我在两个磁盘上都尝试了第二个选项,编辑/etc/fstab以将结果代码设置为2并tune2fs -c 1 /dev/disk为两个磁盘执行。因为,在每次启动期间,我都会看到:

按 Ctrl+C 取消所有正在进行的文件系统检查正在
检查 1 个磁盘(已完成 26.0%)

它显示 1 个磁盘(我预计是两个)。它从 26% 开始,然后上升到(几乎)100%。(看起来像这样,因为显示器正在切换分辨率)

登录后,当我e2fsck在两个磁盘上执行时,仍然发现多个错误,如孤立的 inode、错误的空闲节点计数、0 dtime inode、块位图差异等。

如何e2fsck在启动时修复我发现的错误?


错误:

mark@mark:~$ sudo e2fsck -nf /dev/sda5; sudo e2fsck -nf /dev/sdb1
e2fsck 1.44.1 (24-Mar-2018)
Warning!  /dev/sda5 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong (51260638, counted=51258463).
Fix? no

Free inodes count wrong (13280655, counted=13280622).
Fix? no

/dev/sda5: 154225/13434880 files (0.1% non-contiguous), 2464034/53724672 blocks
e2fsck 1.44.1 (24-Mar-2018)
Warning!  /dev/sdb1 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found.  Fix? no

Inode 21235676 was part of the orphaned inode list.  IGNORED.
Inode 21236927 was part of the orphaned inode list.  IGNORED.
Inode 21237621 was part of the orphaned inode list.  IGNORED.
Inode 21237990 was part of the orphaned inode list.  IGNORED.
Inode 21238402 was part of the orphaned inode list.  IGNORED.
Inode 21238464 was part of the orphaned inode list.  IGNORED.
Deleted inode 21238506 has zero dtime.  Fix? no

Inode 21238523 was part of the orphaned inode list.  IGNORED.
Inode 21238553 was part of the orphaned inode list.  IGNORED.
Inode 35651957 was part of the orphaned inode list.  IGNORED.
Pass 2: Checking directory structure
Entry 'Ubuntu notes.txt' in /mark/Documents (21233680) has deleted/unused inode 21238530.  Clear? no

Entry 'desktop-metadata' in /mark/.config/nautilus (21233804) has deleted/unused inode 21238525.  Clear? no

Entry 'xulstore.json' in /mark/.thunderbird/rhccmynw.default (21495857) has deleted/unused inode 21498027.  Clear? no

Entry 'lock' in /mark/.thunderbird/rhccmynw.default (21495857) has deleted/unused inode 21497953.  Clear? no

Entry 'global-messages-db.sqlite-journal' in /mark/.thunderbird/rhccmynw.default (21495857) references inode 21498857 found in group 2624's unused inodes area.
Fix? no

Entry 'global-messages-db.sqlite-journal' in /mark/.thunderbird/rhccmynw.default (21495857) has deleted/unused inode 21498857.  Clear? no

Entry 'cba86d7c-56f1-4b53-9002-e6008d7ec077' in /mark/.thunderbird/rhccmynw.default/saved-telemetry-pings (21629137) has deleted/unused inode 21627358.  Clear? no

Entry 'recovery.baklz4' in /mark/.mozilla/firefox/1oxfnaca.default-1536326026399/sessionstore-backups (23592969) has deleted/unused inode 23594226.  Clear? no

Entry 'storage.js' in /mark/.mozilla/firefox/1oxfnaca.default-1536326026399/browser-extension-data/[email protected] (26869816) has deleted/unused inode 26869799.  Clear? no

Entry 'home-132a535f.log' in /mark/.local/share/gvfs-metadata (21233829) has deleted/unused inode 21238552.  Clear? no

Entry 'DEB72738C9A4BD2631567485A211516096512633' in /mark/.cache/thunderbird/rhccmynw.default/cache2/entries (21233899) has deleted/unused inode 21238528.  Clear? no

Entry 'E86D0879A15003F74582DAA01F04268E5E3A6193' in /mark/.cache/thunderbird/rhccmynw.default/cache2/entries (21233899) has deleted/unused inode 21238550.  Clear? no

Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Unattached inode 21238336
Connect to /lost+found? no

Unattached inode 21238501
Connect to /lost+found? no

Unattached zero-length inode 21498131.  Clear? no

Unattached inode 21498131
Connect to /lost+found? no

Unattached zero-length inode 23593885.  Clear? no

Unattached inode 23593885
Connect to /lost+found? no

Unattached zero-length inode 26869802.  Clear? no

Unattached inode 26869802
Connect to /lost+found? no

Pass 5: Checking group summary information
Block bitmap differences:  -(84968536--84968537) -(84968580--84968581) -84968797 +(84968918--84968919) -(84969152--84969154) +(84970738--84970739) -(84971372--84971374) -(84971940--84971961) -(84971993--84972003) +85247486 -(85288043--85288050) +(85288078--85288079) -(85418135--85418145) +(85418146--85418148) +85578637 -(85581356--85581366) -(85581436--85581437) -(85581454--85581470) -(85581486--85581490) -(85581862--85581873) -(85581875--85581885) +85582421 -85582422 -(85582435--85582436) -85582440 -(85582460--85582470) -(85582476--85582477) -(85587974--85587984) +(85588047--85588054) -85588058 -(85588061--85588088) -85588094 -(85689681--85689810) -(86016016--86016017) +(86016046--86016047) +86016126 +(86016205--86016207) -(86016244--86016247) +(86384640--86384647) +(86453944--86453945) +(86454004--86454008) -(86540452--86540454) -88113216 -(88836576--88836603) -(90732824--90732825) -(94589879--94589887) -(94590320--94590334) -(110201600--110201638) -(110209536--110209696) +(129848128--129848166) -(136747992--136749179) -(138456000--138456038) +(142697944--142697951) +(142697953--142697977) +(142701330--142701332)
Fix? no

Free blocks count wrong for group #2593 (20540, counted=20533).
Fix? no

Free blocks count wrong for group #2601 (27008, counted=27009).
Fix? no

Free blocks count wrong for group #2602 (30229, counted=30231).
Fix? no

Free blocks count wrong for group #2606 (17690, counted=17693).
Fix? no

Free blocks count wrong for group #2611 (18206, counted=18122).
Fix? no

Free blocks count wrong for group #2615 (18615, counted=18485).
Fix? no

Free blocks count wrong for group #2636 (26230, counted=26238).
Fix? no

Free blocks count wrong for group #2638 (19435, counted=19446).
Fix? no

Free blocks count wrong for group #2641 (29547, counted=29544).
Fix? no

Free blocks count wrong for group #2712 (18146, counted=18130).
Fix? no

Free blocks count wrong for group #2768 (15344, counted=15342).
Fix? no

Free blocks count wrong for group #2884 (974, counted=971).
Fix? no

Free blocks count wrong for group #2886 (6832, counted=6822).
Fix? no

Free blocks count wrong for group #3360 (22484, counted=21894).
Fix? no

Free blocks count wrong for group #3363 (3835, counted=3635).
Fix? no

Free blocks count wrong for group #3962 (5153, counted=5192).
Fix? no

Free blocks count wrong for group #4173 (26643, counted=25455).
Fix? no

Free blocks count wrong for group #4354 (25277, counted=25313).
Fix? no

Free blocks count wrong (189550061, counted=189547835).
Fix? no

Inode bitmap differences:  -21235676 -21236927 -21237621 -21237990 -21238402 -21238464 -21238506 -21238523 -21238525 -21238528 -21238530 -21238550 -(21238552--21238553) -21497953 -21498027 +21498131 -21498857 -21627358 +23593885 -23594226 -26869799 +26869802 -27918519 -27918526 -35651957
Fix? no

Free inodes count wrong for group #2592 (2527, counted=2522).
Fix? no

Free inodes count wrong for group #2624 (5146, counted=5144).
Fix? no

Free inodes count wrong for group #2640 (6403, counted=6402).
Fix? no

Free inodes count wrong for group #2880 (140, counted=139).
Fix? no

Free inodes count wrong for group #3408 (5367, counted=5365).
Fix? no

Free inodes count wrong (60153933, counted=60153866).
Fix? no


/dev/sdb1: ********** WARNING: Filesystem still has errors **********

/dev/sdb1: 901043/61054976 files (0.4% non-contiguous), 54639880/244189941 blocks

[编辑] 添加了请求的输出smartctl

mark@mark:~$ sudo smartctl --all /dev/sda5; sudo smartctl --all /dev/sdb1
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.18.0-15-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     KINGSTON SUV400S37240G
Serial Number:    50026B776B003933
LU WWN Device Id: 0 550380 440010000
Firmware Version: 0C3J96R9
User Capacity:    240,057,409,536 bytes [240 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    Solid State Device
Form Factor:      M.2
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   Unknown(0x0ffe), ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Feb 28 11:30:37 2019 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                    was never started.
                    Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                    without error or no self-test has ever 
                    been run.
Total time to complete Offline 
data collection:        (    5) seconds.
Offline data collection
capabilities:            (0x71) SMART execute Offline immediate.
                    No Auto Offline data collection support.
                    Suspend Offline collection upon new
                    command.
                    No Offline surface scan supported.
                    Self-test supported.
                    Conveyance Self-test supported.
                    Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                    power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                    General Purpose Logging supported.
Short self-test routine 
recommended polling time:    (   2) minutes.
Extended self-test routine
recommended polling time:    (   5) minutes.
Conveyance self-test routine
recommended polling time:    (   0) minutes.
SCT capabilities:          (0x003d) SCT Status supported.
                    SCT Error Recovery Control supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 48
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   000    Pre-fail  Always       -       0
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       4502
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       496
100 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       915296
101 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       198848
170 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
171 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
172 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
174 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       9
175 Program_Fail_Count_Chip 0x0032   100   100   000    Old_age   Always       -       0
176 Erase_Fail_Count_Chip   0x0032   100   100   000    Old_age   Always       -       0
177 Wear_Leveling_Count     0x0032   100   100   000    Old_age   Always       -       269
178 Used_Rsvd_Blk_Cnt_Chip  0x0002   100   100   000    Old_age   Always       -       0
180 Unused_Rsvd_Blk_Cnt_Tot 0x0002   100   100   000    Old_age   Always       -       1194
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       4
187 Reported_Uncorrect      0x0033   100   100   000    Pre-fail  Always       -       0
194 Temperature_Celsius     0x0022   027   100   000    Old_age   Always       -       27 (Min/Max 20/35)
195 Hardware_ECC_Recovered  0x0032   100   100   000    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x0012   100   100   000    Old_age   Always       -       0
201 Unknown_SSD_Attribute   0x0032   100   100   000    Old_age   Always       -       0
204 Soft_ECC_Correction     0x0032   100   100   000    Old_age   Always       -       0
231 Temperature_Celsius     0x0032   100   100   000    Old_age   Always       -       0
233 Media_Wearout_Indicator 0x0032   100   100   000    Old_age   Always       -       1575
234 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       920
241 Total_LBAs_Written      0x0032   100   100   000    Old_age   Always       -       1374
242 Total_LBAs_Read         0x0032   100   100   000    Old_age   Always       -       1456
250 Read_Error_Retry_Rate   0x0032   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 0
No Errors Logged

SMART Self-test log structure revision number 0
Warning: ATA Specification requires self-test log structure revision number = 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.18.0-15-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD10EFRX-68FYTN0
Serial Number:    WD-WCC4J4TC3CEE
LU WWN Device Id: 5 0014ee 2b8acbc22
Firmware Version: 82.00A82
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Feb 28 11:30:37 2019 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                    was never started.
                    Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                    without error or no self-test has ever 
                    been run.
Total time to complete Offline 
data collection:        (13500) seconds.
Offline data collection
capabilities:            (0x7b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    Conveyance Self-test supported.
                    Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                    power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                    General Purpose Logging supported.
Short self-test routine 
recommended polling time:    (   2) minutes.
Extended self-test routine
recommended polling time:    ( 154) minutes.
Conveyance self-test routine
recommended polling time:    (   5) minutes.
SCT capabilities:          (0x303d) SCT Status supported.
                    SCT Error Recovery Control supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   137   136   021    Pre-fail  Always       -       4141
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       502
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   094   094   000    Old_age   Always       -       4497
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       502
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       11
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       564
194 Temperature_Celsius     0x0022   113   109   000    Old_age   Always       -       30
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   100   253   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
boot fsck
  • 2 个回答
  • 14323 Views
Martin Hope
Mark Jeronimus
Asked: 2016-01-21 02:13:49 +0800 CST

更新 3.16.0-57 后内核崩溃

  • 2

我在 HP Mini 5103 上运行 Lubuntu 14.04,昨天升级后,我得到了完全可重现的内核恐慌。

  • 发生恐慌的内核:3.16.0-57
  • 不恐慌的内核:3.16.0-56

也许是相关的,但是在过去半年左右的时间里,每当我看到新更新的通知并尝试安装它们时,有时(部分)更新安装得很好,有时我会遇到一些错误。当我尝试提交错误时,它会询问我的密码。然后,当我确认并生成另一个报告错误对话框,再次要求输入密码时,此密码对话框崩溃,再次崩溃,等等......

我目前的解决方法是每次打开计算机时按住 [shift] 并选择以前的内核,但我不想继续这样做。我喜欢的是:

  • 卸载这个令人反感的内核,或者
  • 选择以前的内核作为默认值。

[编辑]

ls -l /boot
total 216922
-rw-r--r-- 1 root root  1213454 aug 11 20:09 abi-3.16.0-46-generic
-rw-r--r-- 1 root root  1213779 aug 21 02:41 abi-3.16.0-48-generic
-rw-r--r-- 1 root root  1213632 sep  9 13:36 abi-3.16.0-49-generic
-rw-r--r-- 1 root root  1213747 okt 23 17:39 abi-3.16.0-52-generic
-rw-r--r-- 1 root root  1213747 nov  6 21:36 abi-3.16.0-53-generic
-rw-r--r-- 1 root root  1213747 nov 17 13:30 abi-3.16.0-55-generic
-rw-r--r-- 1 root root  1213821 dec  2 14:55 abi-3.16.0-56-generic
-rw-r--r-- 1 root root  1213821 jan 18 17:56 abi-3.16.0-59-generic
-rw-r--r-- 1 root root   176153 aug 11 20:09 config-3.16.0-46-generic
-rw-r--r-- 1 root root   176172 aug 21 02:41 config-3.16.0-48-generic
-rw-r--r-- 1 root root   176172 sep  9 13:36 config-3.16.0-49-generic
-rw-r--r-- 1 root root   176172 okt 23 17:39 config-3.16.0-52-generic
-rw-r--r-- 1 root root   176172 nov  6 21:36 config-3.16.0-53-generic
-rw-r--r-- 1 root root   176172 nov 17 13:30 config-3.16.0-55-generic
-rw-r--r-- 1 root root   176172 dec  2 14:55 config-3.16.0-56-generic
-rw-r--r-- 1 root root   176172 jan 18 17:56 config-3.16.0-59-generic
drwxr-xr-x 5 root root     1024 jan 20 16:36 grub
-rw-r--r-- 1 root root 19862602 sep  3 08:29 initrd.img-3.16.0-46-generic
-rw-r--r-- 1 root root 19861440 sep  4 13:03 initrd.img-3.16.0-48-generic
-rw-r--r-- 1 root root 19861112 sep 25 12:40 initrd.img-3.16.0-49-generic
-rw-r--r-- 1 root root 19861936 nov  5 08:57 initrd.img-3.16.0-52-generic
-rw-r--r-- 1 root root 19861924 nov 20 14:12 initrd.img-3.16.0-53-generic
-rw-r--r-- 1 root root 19862906 dec  1 09:21 initrd.img-3.16.0-55-generic
-rw-r--r-- 1 root root 19864377 dec 17 09:04 initrd.img-3.16.0-56-generic
drwx------ 2 root root    12288 aug 29 16:41 lost+found
-rw-r--r-- 1 root root   176500 mrt 12  2014 memtest86+.bin
-rw-r--r-- 1 root root   178176 mrt 12  2014 memtest86+.elf
-rw-r--r-- 1 root root   178680 mrt 12  2014 memtest86+_multiboot.bin
-rw------- 1 root root  2792155 aug 11 20:09 System.map-3.16.0-46-generic
-rw------- 1 root root  2791983 aug 21 02:41 System.map-3.16.0-48-generic
-rw------- 1 root root  2791983 sep  9 13:36 System.map-3.16.0-49-generic
-rw------- 1 root root  2792803 okt 23 17:39 System.map-3.16.0-52-generic
-rw------- 1 root root  2792803 nov  6 21:36 System.map-3.16.0-53-generic
-rw------- 1 root root  2792814 nov 17 13:30 System.map-3.16.0-55-generic
-rw------- 1 root root  2793015 dec  2 14:55 System.map-3.16.0-56-generic
-rw------- 1 root root  2793015 jan 18 17:56 System.map-3.16.0-59-generic
-rw------- 1 root root  6017280 aug 11 20:09 vmlinuz-3.16.0-46-generic
-rw------- 1 root root  6017696 aug 21 02:41 vmlinuz-3.16.0-48-generic
-rw------- 1 root root  6017504 sep  9 13:36 vmlinuz-3.16.0-49-generic
-rw------- 1 root root  6018848 okt 23 17:39 vmlinuz-3.16.0-52-generic
-rw------- 1 root root  6018848 nov  6 21:36 vmlinuz-3.16.0-53-generic
-rw------- 1 root root  6020480 nov 17 13:30 vmlinuz-3.16.0-55-generic
-rw------- 1 root root  6020960 dec  2 14:55 vmlinuz-3.16.0-56-generic
-rw------- 1 root root  6020800 jan 18 17:56 vmlinuz-3.16.0-59-generic
14.04
  • 2 个回答
  • 1193 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve